Why I have to nullify the session variables?Is session_destroy
not enough?
<?php
session_start();
$_SESSION = array();// <--Is necessary?
if (isset($_COOKIE[session_name()]])){
setcookie(session_name(),'',time()-42000,'/');
}
session_destroy();
header('Location:Login.php');
?>