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