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:[EMAIL PROTECTED]]
Sent: 20 March 2001 12:32
To: [EMAIL PROTECTED]
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
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]