Re: HELP -> stop post data expiring?
From: Kevin Thorpe (kevin_at_pricetrak.com)
Date: 05/14/04
- Next message: Tim Van Wassenhove: "Re: perl and php"
- Previous message: Erwin Moller: "Re: perl and php"
- In reply to: brendan: "HELP -> stop post data expiring?"
- Next in thread: Jeff Rodriguez: "Re: HELP -> stop post data expiring?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 14 May 2004 15:22:07 +0100
brendan wrote:
> Sorry this isnt a cross post .. i just didnt get any help from alt.php.
>
> I have a website which utilises post forms for navigation in some areas.
> Problem is, when *some* users hit the BACK button the POSTDATA content
> has expired and they need to refresh the page then they get a alert
> about refreshing expired data.
>
> I am getting complaints that this is too annoying and limits the sites
> useability.
>
> For security reasons I cant swap post for get.
>
> the header content of the page is
> header('Expires: '.gmdate('D, d M Y H:i:s', time() + 600) .'GMT');
>
> which seems to work on some browsers/systems but not others ...
>
> I want to over-ride the users cache settings but am not sure how this
> can be best achieved in respect of POST data
>
> any help greatly appreciated.
>
IIRC you can avoid this using redirects. The script which accepts the
posted data should process it (add to the database or such) and then
issue header('Location: results.php'); which will ensure that there are
no pages in the browser cache relating to posted data.
- Next message: Tim Van Wassenhove: "Re: perl and php"
- Previous message: Erwin Moller: "Re: perl and php"
- In reply to: brendan: "HELP -> stop post data expiring?"
- Next in thread: Jeff Rodriguez: "Re: HELP -> stop post data expiring?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]