mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'w49_MDL-43106_m27_doublecookie' of https://github.com/skodak/moodle
This commit is contained in:
commit
466aa44471
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user