Re: Sessions Lose Form Field Data When Back Button Used?

From: Date: Tue, 17 Jul 2007 00:53:26 +0000
Subject: Re: Sessions Lose Form Field Data When Back Button Used?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-258963@lists.php.net to get a copy of this message
Instruct ICC wrote:
I have an old PHP page without sessions. When the user submits the form, and then clicks the browser back button, the prior form data is retained. If I now have that PHP page require another page that uses session_start, when the user submits the form, and then clicks the browser back button, the prior form data is lost.
That has to be your code re-setting the session variables or something. PHP won't do this automatically for you.
I even modified my code to check for isset($_SESSION) to not call session_start again, but no joy.
$_SESSION doesn't exist until AFTER you call session_start ;) -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#258963) next »