jeff5656 Posted September 1, 2009 Share Posted September 1, 2009 When I log out I do a session destroy. But then when I go back to the page: session_start(); if(!isset($_SESSION['myusername'])){ $_SESSION['loc']='../patientlist/displayactive.php'; header("location: ../telephone/main_login.php"); } It does not redirect to the header. When I echo $_SESSION['myusername'] it is blank, so how come the header statement inside the if does not get activated? Link to comment https://forums.phpfreaks.com/topic/172710-i-can-still-log-in-after-session-destroy/ Share on other sites More sharing options...
JonnoTheDev Posted September 1, 2009 Share Posted September 1, 2009 Exit after using header to redirect header("Location:abc.php"); exit(); Link to comment https://forums.phpfreaks.com/topic/172710-i-can-still-log-in-after-session-destroy/#findComment-910357 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.