title: Using session variables to maintain form data during a browser back sequence
body: <p>I have a multipage form, with back buttons, and I'm trying to have a server-side way to maintain the form data if the user clicks back.</p>
  
  <p>I have a back button like this:</p>
  
  <pre><code>&lt;button id="backButton"&gt;Back&lt;/button&gt;
  </code></pre>
  
  <p>And the button handler is as such:</p>
  
  <pre><code>$('#backButton').live('click',function() {
          window.history.back();
      });
  </code></pre>
  
  <p>After the first part of the form is submitted, I put all of the submitted data into $_SESSION variables. I can even echo out those variables on the second part of the form, but when I click the back button to go to the first part of the form, the session variables don't carry over.</p>
  
  <p>I am starting the session correctly and I use session variables for various other parts of the site, and they work flawlessly.</p>
  
  <p>How can I carry variables back when a back button is pressed?</p>