Re: stopping back button

From: Date: Mon, 30 Oct 2000 17:09:35 +0000
Subject: Re: stopping back button
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22708@lists.php.net to get a copy of this message
You might be able to send an HTTP header with each page forcing a no-cache, so every invocation must go back to the server for content. From there, the application can track where the user is and what should be displayed. Now as far as all browers respecting the no-cache headers could be a bit tricky. You might need to send more than one header to cover them, not to mention proxy server caching too ;-) Here's some helpful info on caching: http://www.mnot.net/cache_docs/ Jeff Demel wrote: > > Yeah, I didn't think of that. The only drawback is if the user knows that > you can use the keyboard's backspace key (IE) when the back button is not > available. I think there's a keyboard command in Netscape that does the > same thing, although I don't know what it is (maybe "ALT+<-" ?). Maybe use > META Refresh or some code to force the page to refresh and not come out of > cache? Not really sure if that would work. > > -Jeff > > -----Original Message----- > From: mohrt@ispi.net [mailto:mohrt@ispi.net]On Behalf Of Monte Ohrt > Sent: Monday, October 30, 2000 10:46 AM > To: Jeff Demel > Subject: Re: [PHP] stopping back button > > This may not work 100% since browsers might display a locally cached > version of the previous page. One possible preventative measure would be > to open the application in a new browser window without the toolbar > buttons. > > Jeff Demel wrote: > > > > To tell you the truth, you shouldn't disable the back button even if you > > could, which I'm not sure you can. Try using session vars, cookies, or > > something like that for checking where your user is in the process and > > directing them to the correct form. > > > > HTH > > > > -Jeff > > > > -----Original Message----- > > From: Road Runner [mailto:davisr004@hawaii.rr.com] > > Sent: Monday, October 30, 2000 4:10 AM > > To: php-general@lists.php.net > > Subject: [PHP] stopping back button > > > > I have a script that has several forms that return to the same file with > > PHP_SELF How can I keep users from using the back button and re-entering > > data into a form that they have already used once? > > > > thanks in advance, > > > > rodney > > > > -- > > 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 > > > > -- > > 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/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.general (#22708) next »