Jump to content

$_SESSION data lost.


the_oliver

Recommended Posts

session_start() is started very first thing when the user loggs in.

 

On a later page to enter a value:

 

$_SESSION['tid'] = $_POST['tid'];

 

To retreave it:

 

echo $_SESSION['tid'];

 

It works first time.  However if a user then submits the form, it is send else where, and when it is sent back having failed that validation, there is no longer a value in $_SESSION['tid'];

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/62752-_session-data-lost/#findComment-312344
Share on other sites

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.