Re: browser back-button problem
| From: | Krzysztof Dziekiewicz | Date: | Fri, 18 Oct 2002 08:07:08 +0000 |
| Subject: | Re: browser back-button problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120469@lists.php.net to get a copy of this message | ||
> How can I prevent this?
> I saw several forms, that displayed this: "form is expired" thing, if you
> used the back-button (?).
Unfortunately, Mozilla, Netscape, Konqueror, and Opera all
share a common defect. When you use the back button, cache
rules are ignored, and it uses a cached copy regardless.
It does matter you send no-cache headers.
In my opinion the best way:
1.On page1.html there are form fields and submit.
2.Submit sends data to page2.html
3.page2.html computers date but does not send any html code but execute
header('Locate: page3.html')
4.page3.html shows results
If you press back button on page3.html you will return to page1.html. Your
browser knows nothing about page2.html
Krzysztof Dziekiewicz