Fixing issue where infinite loops would occur when a session was first created.

This commit is contained in:
mark_story 2010-07-25 23:40:26 -04:00
parent 977ffa96be
commit d2097c514f

View file

@ -237,9 +237,8 @@ class CakeSession {
session_write_close();
self::_configureSession();
self::_startSession();
$started = self::started();
if (self::id() && $started) {
if ((!self::id() && self::started()) || empty($_SESSION)) {
self::_checkValid();
}