Fix Session not saving on some servers

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.1.1@43625 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-10-19 04:24:22 +00:00 committed by Sam Minnee
parent 29e8cdae7a
commit 957ba1f3a2

View File

@ -53,7 +53,10 @@ class Director {
$response = $controllerObj->run(array_merge((array)$_GET, (array)$_POST, (array)$_FILES)); $response = $controllerObj->run(array_merge((array)$_GET, (array)$_POST, (array)$_FILES));
// Save the updated session back // Save the updated session back
$_SESSION = $controllerObj->getSession()->inst_getAll(); foreach($controllerObj->getSession()->inst_getAll() as $k => $v) {
$_SESSION[$k] = $v;
}
$response->output(); $response->output();
} }