Hi there, I've been searching on google about this issues, but i couldn't find anything useful:
1)I'am asking myself if there is a way to destroy a cookie or a session if the user close a window?
2)Some say that if you close the window that cookies and sessions won't exist, but this is not true. You could still be logged in after closing and reopening an authorized page:
I've seen things like:
<body onUnload="window.location.href="session_destroy.php">
But this didn't work off course.
3)what about when someone logs out and you can still get to page by clicking the return button. How can you deal with this?
I saw something like:
<?php
//prevent user from caching your page!!!!
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" );
?>
Is there anyone who have dealt with this problems and found a good solution for it?
Thanks a lot!