If you mean my post:
sessions and cookies after closing a window without logging out :
<body onUnload="window.location.href="session_destroy.php">
This won't work because, if you click a link which redirects to another the page will execute the unload call. While it should be only meant to destroy the sessions when the page is closed.
And the second option:
header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
Believe me I have tried this, but I still have the same problems!
- If you close the browser without loggin out, it is possible to view the private page.
- If you log out , but click the back button, it is still possible to view the restricted page.
Is there out, some one who have had the same, problems?
Thanks