Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing issue where infinite loops would occur when a session was firs…
…t created.
  • Loading branch information
markstory committed Jul 28, 2010
1 parent 977ffa9 commit d2097c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cake/libs/cake_session.php
Expand Up @@ -237,9 +237,8 @@ public static function start() {
session_write_close();
self::_configureSession();
self::_startSession();
$started = self::started();

if (self::id() && $started) {
if ((!self::id() && self::started()) || empty($_SESSION)) {
self::_checkValid();
}

Expand Down

0 comments on commit d2097c5

Please sign in to comment.