Re: Sessions/Browser back button
| From: | 1LT John W. Holmes | Date: | Mon, 25 Nov 2002 14:24:42 +0000 |
| Subject: | Re: Sessions/Browser back button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125931@lists.php.net to get a copy of this message | ||
Or if you use GET in your forms, instead of POST, you won't have this
problem.
---John Holmes...
----- Original Message -----
From: "Justin French" <justin@indent.com.au>
To: "Craig" <craig@phirus.com>; <php-general@lists.php.net>
Sent: Monday, November 25, 2002 8:15 AM
Subject: Re: [PHP] Sessions/Browser back button
> on 26/11/02 12:03 AM, Craig (craig@phirus.com) wrote:
>
> > I remember seeing threads debating this before, but is there anyway to
> > disable/prevent a user from heading back in the browser and getting the
> > "WARNING: Page has Expired" notice?
>
> This is more like a diversion around the problem... It will either be
> relevant to your problem, or not :)
>
> In particular, I use this to prevent people from refreshing their page
(and
> hence adding something to the DB twice for example).
>
> Lets say you have form.php, which submits to process.php... the aim is to
> have process.php as a server-only script (ie, nothing is sent to the
> browser), with a header() redirect to a thankyou.php page once I've added
> stuff to the DB, or whatever....
>
> The point is, they'll never see a page expired message in this case,
because
> the script receiving the POST information never gets to the browser.
>
>
> This may or may not help, depending on your problem :)
>
>
> Justin French
> --------------------
> http://Indent.com.au
> Web Development &
> Graphic Design
> --------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>