Skip to content

Commit

Permalink
Revert "Using better way to check for active session"
Browse files Browse the repository at this point in the history
This reverts commit 439a33c.
  • Loading branch information
phpnut committed Dec 15, 2015
1 parent 975262b commit 464a266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/CakeSession.php
Expand Up @@ -218,7 +218,7 @@ public static function start() {
* @return bool True if session has been started.
*/
public static function started() {
return (session_status() === PHP_SESSION_ACTIVE);
return isset($_SESSION) && session_id();
}

/**
Expand Down

0 comments on commit 464a266

Please sign in to comment.