Re: Sessions Lose Form Field Data When Back Button Used?
| From: | Chris Shiflett | Date: | Tue, 17 Jul 2007 22:04:58 +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-259044@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.
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/