Re: Avoiding 'page expired' warnings
| From: | Miguel Cruz | Date: | Fri, 17 May 2002 18:14:37 +0000 |
| Subject: | Re: Avoiding 'page expired' warnings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98155@lists.php.net to get a copy of this message | ||
On Fri, 17 May 2002, Scott Graham wrote:
> I've got a PHP powered site that involves some form submissions for searches
> and when using the browser's 'back' button to return to the search results
> page I get the horrible 'Page expired' warning due to the page being created
> from variables sent in a form.
>
> I know there is a way to avoid this problem because all search enabled
> websites seem to manage to avoid it, but I don't know how.
> Can anyone help?
>
> I had thought using sessions would help but it makes no difference. Is this
> something that can be avoided with PHP or does it require some client-side
> stuff?
The simplest solution is to use GET rather than POST method in your forms.
miguel