title: Sending localStorage variables through the jQuery Ajax function without it being in the url
body: <p>Good day,</p>
  
  <p>I would just like to know if there is a way of sending localStorage variables through the Ajax function without it being in the url. For example:</p>
  
  <pre><code>$.ajax({
      type: "POST",
      url: "../pages/profile.php",
      data: localStorage.email,
      dataType: 'json'
      success: function(result)
      {     
          //document.location.replace('../pages/main.php');
      },
      error: function()
      {
          alert('An Error has occured, please try again.');
      }
  });
  </code></pre>
  
  <p>The return type from the php will be JSON in this case, as needed.</p>
  
  <p>Thanks in advance</p>