Jump to content

What would make a $_SESSION variable disappear?


doubledee

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.