I'm developing an app on localhost using:
Google Chrome 33.0.1750.154 m
XAMPP Version 1.8.3
I've been using these for a while now and today all of a sudden Chrome is not clearing session cookies
when I close the browser (all windows), even after I restart my machine, session cookies
are still set from last session.
I have this code at the top of my page:
<?php
session_start();
if(!isset($_SESSION['userID']))
{
echo "<script>alert('Username does not exist')</script>";
echo '<script type="text/javascript"> window.location="login.html";</script>';
exit(1);
}
?>
Which worked fine, redirecting me to the login page after the browser has been closed, up until a few hours ago.
NOTE:
Tested IE10, IE11, and FF and they DO NOT exhibit the same behavior, they are clearing session cookies
as expected.
I have also verified that the
Continue where I left off...
setting is unchecked.