Fix Session not saving on some servers (merged from 2.1.1 branch, r43627)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44200 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-04 21:33:50 +00:00
parent 14b91fe77a
commit ba4645f8aa

View File

@ -53,7 +53,10 @@ class Director {
$response = $controllerObj->run(array_merge((array)$_GET, (array)$_POST, (array)$_FILES));
// Save the updated session back
$_SESSION = $controllerObj->getSession()->inst_getAll();
foreach($controllerObj->getSession()->inst_getAll() as $k => $v) {
$_SESSION[$k] = $v;
}
if(isset($_GET['debug_profile'])) Profiler::mark("Outputting to browser");
$response->output();