Using $_SESSION directly, Session::get() is broken

This commit is contained in:
Ingo Schommer 2014-05-15 17:28:53 +12:00
parent 4b15214588
commit 3f60aac770

View File

@ -58,7 +58,9 @@ class TestSessionEnvironment extends Object {
$this->id = $id;
} else {
Session::start();
$this->id = Session::get('TestSessionId');
// $_SESSION != Session::get() in some execution paths, suspect Controller->pushCurrent()
// as part of the issue, easiest resolution is to use session directly for now
$this->id = (isset($_SESSION['TestSessionId'])) ? $_SESSION['TestSessionId'] : null;
}
}