mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Backport of https://github.com/cakephp/cakephp/issues/5667
This commit is contained in:
parent
d39c744c28
commit
687d0b44f5
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