Commit 226991e9 authored by Petr Škoda's avatar Petr Škoda
Browse files

MDL-43106 fix double cookies on first access

parent 9b37cd72
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment