Revert "session_status() not available until 5.4"

This reverts commit da9b6453ce.
This commit is contained in:
Larry E. Masters 2015-12-14 19:29:08 -06:00
parent 5790d49f5b
commit 1a3598c3f4

View file

@ -218,10 +218,7 @@ 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();
return (session_status() === PHP_SESSION_ACTIVE);
}
/**