session lost when back button hit?
| From: | Jean-Christian Imbeault | Date: | Fri, 16 Aug 2002 14:43:27 +0000 |
| Subject: | session lost when back button hit? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-112965@lists.php.net to get a copy of this message | ||
I have two pages, page one links to page two via a form button. The browser does not accept cookies.
On page two I create a session variable with:
$_SESSION["id"] = 1;
But if I hit the back button to go back to page one $_SESSION["id"] is not set. If I hit the reload button on page one it is still not set.
How can I get a session var to stay set when someone hits the back button?
Jc
PS I have session.auto_start ON and enabled trans-sid