I cannot properly unset the session id of my page unless I close the browser and reopen it. I tried to set the $_SESSION = null;
and to forcefully set the cookie to a negative value setcookie('cookiename', '', time()-3600);
but no results yet.
<body>
<?php
session_start();
// Unset all of the session variables.
$_SESSION = null;
setcookie('cookiename', '', time()-3600);
session_destroy();
print "SESSION has been destroyed - all session data deleted";
?>
</body>