title: How to send value retrieved from AJAX response to another file?
body: <p>I am retrieving some values from AJAX response and redirecting to another page and I want to send those values to that page.</p>
  
  <p>This is my AJAX code</p>
  
  <pre><code>$.ajax({
      url: 'php/oauth.php',
      type: 'post',
      data:{
          email:email,
          dataType: 'json',
          cache: false,
          contentType: false,
          processData: false,
          async: false
      },
      success: function(response) {
          var data = $.parseJSON(response);
          if(data!=''){
              $.each(data, function(i, item) {
                  alert(data[i].uid);    // Here I am getting correct value                 
                  window.location.href = "https://localhost/gaming/registration.php"; //Now when response is ok I'm redirecting to this. I want to send the above value to this page
              });
          }
      }
  });
  </code></pre>