Odd Problem with PHP $_SESSION
<p>I'm having a problem carrying over a variable from Page 2 to Page 1. I have a multi-part form, and the idea is to be able to save your input in session variables if you decide to go back to Page 1 (which is the page with the fields.</p>

<p>Page 1 has a POST action to Page 2. Then, in Page 2, the $_SESSION variables are set from the POST variables. Keep in mind, the <i>POST variables were set correctly, as I call them in a later part of Page 2 with success</i>. </p>

<p>My problem is this: I am not able to set a $_SESSION variable to the value of the $_POST variable on Page 2, <b>and</b> carry it over to Page 1. I can set and output a $_SESSION variable from the POST variable on Page 2 (it just doesn't carry back to Page 1). I can set the $_SESSION var to a string, however, and have it carry over to Page 1. Normally, this would be evidence that the POST vars are bad, but they carry the correct values properly.</p>

<p><b>What I am trying to do:</b>
Put the value of a $_POST var from Page 2 into a $_SESSION var, and have it go back to Page 1.</p>

<p><b>My Problem:</b>
The session vars don't carry back to Page 1 from Page 2. They can carry a string, but not the POST variables. The POST variables are not the problem, as I described above, so please don't try to troubleshoot by checking POST var validity, etc. They output perfectly.</p>

<p>I can do a session dump on Page 2, and all of the session vars I need are filled properly.</p>

<p>If I go back to Page 1 after that, the session vars in question are set to NULL. Keep in mind, I have dozens of other session vars working on that particular page. It is <b>not</b> a <code>session_start();</code> problem.</p>

<p>The zinger - I can carry a session variable over to Page 2 from Page 1, no problem.</p>

<h1><a href="http://pastebin.com/7vp1D3rw" rel="nofollow">Page 1 Pastebin</a></h1>

<h1><a href="http://pastebin.com/ez1EdztB" rel="nofollow">Page 2 Pastebin</a></h1>
