I have this code on my local apache server:
if(! isset($_GET['mode'])) {
$_GET['mode']="login";
}
if($_GET['mode']="logout") {
session_start();
unset($_SESSION['user']);
unset($_SESSION['pass']);
unset($_SESSION['status']);
header("Location:index.php");
}
If the mode is login why does he run the last line of the logout mode?