Or if you use GET in your forms, instead of POST, you won't have this
problem.

---John Holmes...

----- Original Message -----
From: "Justin French" <[EMAIL PROTECTED]>
To: "Craig" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 8:15 AM
Subject: Re: [PHP] Sessions/Browser back button


> on 26/11/02 12:03 AM, Craig ([EMAIL PROTECTED]) 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
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to