Skip to content
Permalink
Browse files

Revert "session_status() not available until 5.4"

This reverts commit da9b645.
  • Loading branch information...
phpnut committed Dec 15, 2015
1 parent 5790d49 commit 1a3598c3f42c8c5d9349ebc69a7c9361cb0cd01e
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/Cake/Model/Datasource/CakeSession.php
@@ -218,10 +218,7 @@ public static function start() {
* @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);
}
/**

0 comments on commit 1a3598c

Please sign in to comment.
You can’t perform that action at this time.