Commit a2f1c5c3 authored by Davo Smith's avatar Davo Smith
Browse files

MDL-57752 session: fix check_security() session termination

parent 7a3b115d
......@@ -80,6 +80,7 @@ class manager {
}
self::initialise_user_session($isnewsession);
self::$sessionactive = true; // Set here, so the session can be cleared if the security check fails.
self::check_security();
// Link global $USER and $SESSION,
......@@ -97,8 +98,6 @@ class manager {
self::$sessionactive = false;
throw $ex;
}
self::$sessionactive = true;
}
/**
......
Supports Markdown
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