Hi
I have written a logout script to clear the session vars and forward to another page see below:
session_start();
session_unset();
session_destroy();
session_write_close();
setcookie(session_name(),'',0,'/');
session_regenerate_id(true);
include ("user-includes/mma-config.php");
GoToAdminLogin();
exit();
On one hand it seems to work, however if I press the back button in the browser I can still get to a page
I shoulnd't be able to access since I'm suppose to be logged out.
How do I fix this?



Reply With Quote




Bookmarks