doubledee Posted July 31, 2011 Share Posted July 31, 2011 I have a Create Account form/page which stores the referring page in a $_SESSION variable. When the Create Account form/page is submitted, it is submitted onto itself, but my code assigns the Referring Page only if the form is displayed as a GET. So when the form is submitted as a POST it shouldn't touch $_SESSION['referringPage']. I am trying to use $_SESSION['referringPage'] on my Log-In page, but keep getting an "Undefined Index" error. It occurred to me that my $_SESSION seems to be getting trashed. Any ideas what could cause that? (Sorry, but my code is several pages and pretty involved, so I'm hoping something obvious pops up from what I just described?!) Thanks, Debbie Quote Link to comment https://forums.phpfreaks.com/topic/243349-what-would-make-a-_session-variable-disappear/ Share on other sites More sharing options...
doubledee Posted July 31, 2011 Author Share Posted July 31, 2011 Trying to copy your SESSION code into another page and accidentally doing Cut+Paste (instead of Copy+Paste) will get you every time!! Thanks, Debbie Quote Link to comment https://forums.phpfreaks.com/topic/243349-what-would-make-a-_session-variable-disappear/#findComment-1249681 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.