mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Revert "session_status() not available until 5.4"
This reverts commit da9b6453ce
.
This commit is contained in:
parent
5790d49f5b
commit
1a3598c3f4
1 changed files with 1 additions and 4 deletions
|
@ -218,11 +218,8 @@ class CakeSession {
|
|||
* @return bool True if session has been started.
|
||||
*/
|
||||
public static function started() {
|
||||
if(PHP_VERSION >=5.4) {
|
||||
return (session_status() === PHP_SESSION_ACTIVE);
|
||||
}
|
||||
return isset($_SESSION) && session_id();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if given variable is set in session.
|
||||
|
|
Loading…
Reference in a new issue