Re: Cache

From: Date: Tue, 20 May 2003 21:19:15 +0000
Subject: Re: Cache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148328@lists.php.net to get a copy of this message
You can try this: Serve the page you want to protect (the one you don't want them to go back to) via a redirect. When they try to return to it via the back button, the redirect is invoked a second time. Then your server logic can refuse to serve it the second time. --Frappy On Tuesday 20 May 2003 04:46 pm, Boaz Yahav wrote: > Hi > > I must be missing something. > I'm trying to disable the option to press the back button > on a spesific page. > > I added this header : header("Cache-control: no-cache"); > > and i also tried adding : > > header("Expires: Mon, 26 Jul 1970 05:00:00 GMT"); // > Date in the past header("Last-Modified: " . gmdate("D, d > M Y H:i:s") . " GMT"); // always modified > header("Cache-Control: no-cache, must-revalidate"); // > HTTP/1.1 header("Pragma: no-cache"); > // HTTP/1.0 > > however, you can still use the back button. > > any idea? > > Sincerely > > berber > > Visit http://www.weberdev.com/ Today!!! > To see where PHP might take you tomorrow.

« previous php.general (#148328) next »