MDL-57752 session: fix check_security() session termination
This commit is contained in:
committed by
Dan Poltawski
parent
ce01dbab40
commit
aca74d0d74
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user