mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing issue where infinite loops would occur when a session was first created.
This commit is contained in:
parent
977ffa96be
commit
d2097c514f
1 changed files with 1 additions and 2 deletions
|
@ -237,9 +237,8 @@ class CakeSession {
|
|||
session_write_close();
|
||||
self::_configureSession();
|
||||
self::_startSession();
|
||||
$started = self::started();
|
||||
|
||||
if (self::id() && $started) {
|
||||
if ((!self::id() && self::started()) || empty($_SESSION)) {
|
||||
self::_checkValid();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue