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???? Quote Link to comment 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() Quote Link to comment Share on other sites More sharing options...
Solution jasmeet Posted September 7, 2013 Author Solution 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.