Posted 07 September 2013 - 06:09 AM
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????
Posted 07 September 2013 - 09:23 AM Best Answer
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..
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users