mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
29e8cdae7a
commit
957ba1f3a2
@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user