Merge branch 'w49_MDL-43106_m27_doublecookie' of https://github.com/skodak/moodle

This commit is contained in:
Dan Poltawski 2013-12-02 11:58:01 +08:00
commit 466aa44471

View File

@ -271,8 +271,9 @@ class manager {
// This should not happen, just log it, we MUST not produce any output here!
error_log("Cannot find session record $sid for user ".$_SESSION['USER']->id.", creating new session.");
}
// Prevent session fixation attacks.
session_regenerate_id(true);
}
session_regenerate_id(true);
$_SESSION = array();
}
unset($sid);