srinivas6203 Posted December 17, 2007 Share Posted December 17, 2007 In authentication, when i click logout link the the form was logout. Again i click back button of browser the same user account was displayed and thats ready to change anything. I listed below my script <?php session_start(); session_unregister("login_user"); session_destroy(); header("Location:login.php"); ?> can anyone help me Quote Link to comment Share on other sites More sharing options...
revraz Posted December 17, 2007 Share Posted December 17, 2007 How is your page checking to see if they are logged in or not? Quote Link to comment Share on other sites More sharing options...
papaface Posted December 17, 2007 Share Posted December 17, 2007 Do this: <?php session_start(); session_unregister("login_user"); $_SESSION = array(); session_destroy(); header("Location:login.php"); ?> Guaranteed to work Quote Link to comment Share on other sites More sharing options...
srinivas6203 Posted December 18, 2007 Author Share Posted December 18, 2007 Thanx for ur reply but its not working. Its persists the problem 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.