Merge pull request #5670 from davidsteinsland/fix_session_destroy

CakeSession::destroy() should check for existence of session
This commit is contained in:
Mark Story 2015-01-15 08:13:39 -05:00
commit ac5ba9942b

View file

@ -442,7 +442,9 @@ class CakeSession {
self::_startSession();
}
if (self::started()) {
session_destroy();
}
$_SESSION = null;
self::$id = null;