mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #5670 from davidsteinsland/fix_session_destroy
CakeSession::destroy() should check for existence of session
This commit is contained in:
commit
ac5ba9942b
1 changed files with 3 additions and 1 deletions
|
@ -442,7 +442,9 @@ class CakeSession {
|
|||
self::_startSession();
|
||||
}
|
||||
|
||||
session_destroy();
|
||||
if (self::started()) {
|
||||
session_destroy();
|
||||
}
|
||||
|
||||
$_SESSION = null;
|
||||
self::$id = null;
|
||||
|
|
Loading…
Reference in a new issue