mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-07 03:52:41 +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.
|
* @return bool True if session has been started.
|
||||||
*/
|
*/
|
||||||
public static function started() {
|
public static function started() {
|
||||||
return (session_status() === PHP_SESSION_ACTIVE);
|
return isset($_SESSION) && session_id();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue