Skip to content

Commit

Permalink
Trim down CakeSession::started()
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant authored and markstory committed Jul 28, 2010
1 parent db97df3 commit dd3e0fa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cake/libs/cake_session.php
Expand Up @@ -207,7 +207,7 @@ public static function start() {
}
session_write_close();
self::__initSession();
self::$_started = self::_startSession();
self::_startSession();
return self::started();
}

Expand All @@ -217,10 +217,7 @@ public static function start() {
* @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());
}

/**
Expand Down

0 comments on commit dd3e0fa

Please sign in to comment.