jkkenzie Posted April 4, 2008 Share Posted April 4, 2008 What happens when someone logout from site? Am asking because, when i logout from my page, it takes me to my home page (index.php) where i can login again, but when i click the browser BACK button i get back to my previous page where i had login and i can manipulate my data from there instead of asking me to login because i had logout. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/99505-logout/ Share on other sites More sharing options...
timmy0320 Posted April 4, 2008 Share Posted April 4, 2008 How are you using your login page? Are you using sessions or cookies? You need to unset these variables when you log out. Link to comment https://forums.phpfreaks.com/topic/99505-logout/#findComment-509072 Share on other sites More sharing options...
jkkenzie Posted April 4, 2008 Author Share Posted April 4, 2008 Can you help me to know how to open a sessions when login and closing sessions when logout? Link to comment https://forums.phpfreaks.com/topic/99505-logout/#findComment-509084 Share on other sites More sharing options...
Klance Posted April 4, 2008 Share Posted April 4, 2008 Can you help me to know how to open a sessions when login and closing sessions when logout? session_start() starts a session and session_destroy() destroys a session. Link to comment https://forums.phpfreaks.com/topic/99505-logout/#findComment-509087 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.