mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Revert "Using better way to check for active session"
This reverts commit 439a33c708
.
This commit is contained in:
parent
975262b03e
commit
464a266fc7
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ class CakeSession {
|
|||
* @return bool True if session has been started.
|
||||
*/
|
||||
public static function started() {
|
||||
return (session_status() === PHP_SESSION_ACTIVE);
|
||||
return isset($_SESSION) && session_id();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue