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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux