Hi there
My problem is regarding the caching of a page, I'm also using sessions id's.
This is what is meant to happen:
I am asking users to complete a login form (login.php3), if the user enters the wrong username and password, an error msg is displayed on login_next.php3 (I want it to go back to login.php3 and display the error msg, but that's in another post already, I can get it to redirect, but not include the error msg)
If the user enters the back button (goes back to login.php3) and fills in the correct username and password the login_next.php3 is loaded with a list of links the user can use dependant on what was entered in the database.
What is happening is when the user clicks on the back button, and enters the correct username and password they are still recieving the error msg, as if the u & P is wrong.
I have set up the no-cache headers:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0; pre-check=0", false);
header("Pragma: no-cache");
but the login.php3 page seems to be cached.
Any ideas would be more than welcome.
Lulubell
😕