RE: [PHP-DB] Expires Pages

From: Date: Tue, 20 Mar 2001 12:35:28 +0000
Subject: RE: [PHP-DB] Expires Pages
Groups: php.db 
Request: Send a blank email to php-db+get-7634@lists.php.net to get a copy of this message
this should work ... in the top of the page, before any other headers are sent <?php header ("Ex-pires:Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // al-ways modified header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); // HTTP/1.0 ?> > -----Original Message----- > From: Marcelo Pereira [mailto:gandalf@sum.desktop.com.br] > Sent: 20 March 2001 12:32 > To: php-db@lists.php.net > Subject: [PHP-DB] Expires Pages > > > Hello, > > I'd like the user of my site to log in/out, but, how can I > disallow the user to press the 'back button' of the browse > after logout, and back to the page ??? > > What I need: > > - The user press 'logout'; > if (user press the 'back button' of the browser) then > show a page telling that the page expired just when the > user clicked at logout. > fi > > I was reading about cookies, I think I have to go in this > direction, but, how ??? > > Thanks in advance, > > See ya. > > Marcelo Pereira > Campinas' University - Brazil >

« previous php.db (#7634) next »