Re: back button gets Warning, page expired
| From: | Monte Ohrt | Date: | Mon, 27 Nov 2000 17:18:40 +0000 |
| Subject: | Re: back button gets Warning, page expired | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27406@lists.php.net to get a copy of this message | ||
This usually happens when the page you are going back to was created by
a form submission, which is expired when done via the "post" method. For
instance, submit a form that creates a new form, then submit that form,
then go back one page. Voila, the page that was created by the first
form has expired. There isn't any single good way around this. You could
change the form to "get" method so that the page doesn't expire, but
that leads to long ugly URL's, and possibly security issues since that
content ends up in the log files. You could add "back" buttons to your
web page for users to use, and make it as obvious as possible that they
should use these, and not the browser back button. Many of the newer
browsers just cache the page instead of displaying the expire message,
but you would still have to reload to have the form actually resubmit on
the server.
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
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/