mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 02:52:41 +00:00
Trim down CakeSession::started()
This commit is contained in:
parent
db97df31cd
commit
dd3e0facd2
1 changed files with 2 additions and 5 deletions
|
@ -207,7 +207,7 @@ class CakeSession {
|
|||
}
|
||||
session_write_close();
|
||||
self::__initSession();
|
||||
self::$_started = self::_startSession();
|
||||
self::_startSession();
|
||||
return self::started();
|
||||
}
|
||||
|
||||
|
@ -217,10 +217,7 @@ class CakeSession {
|
|||
* @return boolean True if session has been started.
|
||||
*/
|
||||
public static function started() {
|
||||
if (isset($_SESSION) && self::$_started) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return isset($_SESSION) && !empty(session_id());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue