[eluser]aggrav8d[/eluser]
I had a menu in a header file that was only supposed to appear when the user was logged in. When the user logged out, the menu was still visible. Turns out Session::userdata still existed, which meant that things like Adam Griffith's Authentication library failed to correctly assert logged_in()===FALSE.
TL;DR: Add this at the end of /system/application/libraries/Session.php(~410)
Code:
// Kill the cookie
setcookie(
$this->sess_cookie_name,
addslashes(serialize(array())),
($this->now - 31500000),
$this->cookie_path,
$this->cookie_domain,
0
);
unset($this->userdata);
}
Cheers!