Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Fixed issue with session validators when a custom session handler is …
Browse files Browse the repository at this point in the history
…defined
  • Loading branch information
Justin Verweel committed Jan 5, 2013
1 parent 601924d commit f6ac81a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/Zend/Session/SessionManager.php
Expand Up @@ -84,9 +84,7 @@ public function start($preserveStorage = false)
}

session_start();
if (!$this->isValid()) {
throw new Exception\RuntimeException('Session validation failed');
}

$storage = $this->getStorage();

// Since session is starting, we need to potentially repopulate our
Expand All @@ -97,6 +95,9 @@ public function start($preserveStorage = false)
}
$_SESSION = $storage;
}
if (!$this->isValid()) {
throw new Exception\RuntimeException('Session validation failed');
}
}

/**
Expand Down

0 comments on commit f6ac81a

Please sign in to comment.