jasmeet Posted September 7, 2013 Share Posted September 7, 2013 i am using sessions. first on admin folder and second on user folder. in admin folder, i use $_SESSION['username']; in user folder, i use $_SESSION['username1']; now when i click on logout button in localhost/xxx/admin/logout.php i also logged out from localhost/xxx/logout.php. is there a way.. not to be logged out from user panel when click logout button in admin panel???? Link to comment https://forums.phpfreaks.com/topic/281948-problem-with-two-sessions-on-logout/ Share on other sites More sharing options...
PravinS Posted September 7, 2013 Share Posted September 7, 2013 what is your logout.php page script, you may have used session_destroy(), it will destroy all your registered sessions instead of session_destroy() use Unset() Link to comment https://forums.phpfreaks.com/topic/281948-problem-with-two-sessions-on-logout/#findComment-1448567 Share on other sites More sharing options...
jasmeet Posted September 7, 2013 Author Share Posted September 7, 2013 what is your logout.php page script, you may have used session_destroy(), it will destroy all your registered sessions instead of session_destroy() use Unset() thanks!! it works.. Link to comment https://forums.phpfreaks.com/topic/281948-problem-with-two-sessions-on-logout/#findComment-1448573 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.