Jump to content

I can still log in after session destroy


jeff5656

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.