my the cache header part is similar:
session_start();
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 i want to understand why the sessions aren't working. are you saying that in PHP, even with the session destroyed and no chache headers the users will be able to explore my web site when they hit the BACK button? is the only way closing the window?
i don't know a lot o ASP, but i have access to some ASP applications that somehow, when you log out and hit the BACK button, the web site doesn't lets you to actually go back and loads a page telling you that.
the solution of closing/opening windows seems ok, but i have to do that with javascript. what happens if it is disabled in the user's browser?
is there a way i can reload the previous page so my session checking script can detect the lack of a session?
thanks again for your help.