Re: back button gets Warning, page expired
| From: | Ignacio Vazquez-Abrams | Date: | Mon, 27 Nov 2000 17:23:16 +0000 |
| Subject: | Re: back button gets Warning, page expired | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27407@lists.php.net to get a copy of this message | ||
On Mon, 27 Nov 2000, Janet Valade wrote:
>
> When a user fills in a form and clicks the submit button and is on the new
> page, if they click the back button in the browser, they get a warning from
> Apache:
>
> "Warning: Page has Expired
> The page you requested was created using information you submitted in
> a form. This page is no longer available. As a security precaution,
> Internet Explorer does not automatically resubmit your information for you.
> To resubmit your information and view this Web page, click the
> Refresh button. "
> While the previous form will be displayed if they click Refresh, no one ever
> reads this. They just see the page expired and believe the info is gone. So,
> my questions are:
> 1) Why are they getting this message? When I do just a little test page with
> one field in the form, this doesn't happen. The back button just goes back
> to the form with a warning. What triggers this warning?
> 2) How can I do this so that the warning does not appear. So that the user
> just goes back to the previous form, retaining the info in the form?
> 3) Alternatively, does anyone know how to change the warning message in
> Apache? If I could display a different message, I could make it more clear
> to users. I know the Apache directive for changing an error message.
> However, the syntax requires the 3-digit error code. This message is a
> warning and doesn't seem to have a 3 digit error code. At least, it doesn't
> display it. Anyone know how to change a warning message in Apache?
> Janet
>
One technique I find useful is for the form to go to a "placeholder" script,
that is, one that does the relevant session or DB stuff and then all it does
is send the browser a "Location:" header pointing to the real page. The
browser never gets to the submission page, because there isn't one, so the
message is avoided.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>