I have a login page on my site where a user enters a username and password...the action of the form points to a page, /members/index.php. On this page, it validates the login info...basically, it determines if the user is "logged in". If so, it shows them their username and a logout link. If not, it displays a form to enter their username password. The problem is that after a user logs in, the page still displays the form to login (but if the user hits the refresh button, it shows their username). I assume this is a caching issue...so I added the following code (from the manual) so that page doesn't cache:
// No Caching
header ("Expires: Mon, 26 Jul 1997 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
but it doesn't work. can someone please help?
the page is: http://www.etriviaworld.com