Skip to content
Permalink
Browse files

Using better way to check for active session

  • Loading branch information...
phpnut committed Dec 14, 2015
1 parent 8f52cef commit 439a33c70827d0986986ca9ad8c3b3daf94fb84f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/CakeSession.php
@@ -218,7 +218,7 @@ public static function start() {
* @return bool True if session has been started.
*/
public static function started() {
return isset($_SESSION) && session_id();
return (session_status() === PHP_SESSION_ACTIVE);
}
/**

0 comments on commit 439a33c

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