title: JQuery AJAX Post - pass variable and navigate URL
body: <p>I am developing a small puzzle. Users click on blocks of a picture and guess what picture it is. I also count how many blocks they opened before submitting. I use following JQuery AJAx code in VBScript/ASP</p>
  
  <pre><code>dataString  = 'totalClick=' + totalClick ;
  
  $.ajax({  
      type: "POST",  
      url: "puzzle3.asp",  
      data: dataString,  
      success: function() {
          alert('totalClick' + totalClick + "data: " + dataString );
          window.location = "puzzle3.asp";
      }  
  });
  </code></pre>
  
  <p>My problem is, I want to get value of 'totalClick' variable on 'puzzle3.asp' page. After I navigate to 'puzzle3.asp', I want to use it there to decide some other stuff. But here as soon as I navigate to puzzle3.asp via AJAX, i lost value of POST variable 'totalClick'.</p>
  
  <p>Is there some way I can use POST, navigate to next page and use variable vlaue there. Just like setting a session variable but I understand i can not assign session variable using JS.</p>
  
  <p>Any help would be appreciated much.</p>