Place these headers in the top of your php file just below the <?PHP
and your problem should be gone.

header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");


"Donpro" <[EMAIL PROTECTED]> schreef in bericht
004601c249dd$9a0034a0$[EMAIL PROTECTED]">news:004601c249dd$9a0034a0$[EMAIL PROTECTED]...
> Hi,
> I am using a session variable to create an area where customers can access
> certain pages via login/password.  If they successfully login, I create a
> session variable and initialize it with their logon username.
> I also have a logout button which unregisters the session variables and
> issues a session_unset() and session_destroy().  Then is takes them back
> the login page.
> Now all my pages in this area first check if the session variable is set
> if not, displays a message that the user must first login.
> I noticed that after logging out and clicking click on the "Back" button
> my browser, it takes me back to the previous page which is does NOT
> the warning that the user must login.  However, when I click on the
> it does.  Is this some sort of caching problem?  I note that other sites
> with similar setups do not have this problem.  When I click on the "Back"
> button, I saw an expiry message.
> How can I emulate this please?
> Thanks,
> Don

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to