A page with no cache is awful. Tell me I can't use the back button on your site and I won't visit it.
Bad idea to disable back button. -rm- ----- Original Message ----- From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: "Catriona Wordsworth" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, August 20, 2003 4:58 AM Subject: Re: disable back button > You cannot disable the back button and the keyboard hotkey for this task > from a perl script. > You might need to use a client side program, like a Javascript one. > > However, you can make a page not to cache, and to expire immidiately, and > this way if a visitor will press the back button the page won't be shown > automaticly. > However, they will be asked if they want to resend the data to the server > and if the visitors will answer 'yes', the browser will resend it with no > problem. > You need to use this method, and also check on the server that the data was > not submitted for a second time. > > To print the http headers for not allowing caching and to set the expiration > date to immidiately expire, use something like: > > print <<EOF; > Content-type: text/html > Cache-control: no-cache > Pragma: no-cache > Expires: Thu, 01-Jan-2033 01:01:01 GMT > > <html><head>.... > ... > </html> > EOF > > teddy.fcc.ro > [EMAIL PROTECTED] > ----- Original Message ----- > From: "Catriona Wordsworth" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, August 20, 2003 7:38 AM > Subject: disable back button > > > Hi guys, > > pretty simple stuff I hope, but can someone tell me how to disable the back > button in my perl script? > > thanks & regards > > Cat > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]