RE: [PHP] session lost when back button hit?

From: Date: Fri, 16 Aug 2002 15:08:00 +0000
Subject: RE: [PHP] session lost when back button hit?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112969@lists.php.net to get a copy of this message
HI make ser youre using session_start() before performing any action on sessions, also make sure you´re registering properly the variables. -----Mensaje original----- De: Jean-Christian Imbeault [mailto:jean_christian@myrealbox.com] Enviado el: viernes, 16 de agosto de 2002 9:43 Para: php-general@lists.php.net Asunto: [PHP] session lost when back button hit? 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#112969) next »