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.

This is a characteristic of the caching headers that session_start()
sends. Although not directly related to your question, I think the
following article articulates this in sufficient detail:

http://shiflett.org/articles/how-to-avoid-page-has-expired-warnings

Hope that helps.

Chris

-- 
Chris Shiflett
http://shiflett.org/

-- 
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