Permalink
Browse files

Fixed a rare problem that report_session_error() causes a redirection…

… loop (Merged from MOODLE_15_STABLE)
  • Loading branch information...
patrickslee
patrickslee committed Sep 5, 2005
1 parent bcbebdc commit c9e2e3ffcf6223826818a470ccc7643c8fed283c
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/moodlelib.php
View
@@ -6539,6 +6539,8 @@ function report_session_error() {
} else {
set_config('session_error_counter', 1);
}
+ unset($_SESSION['USER']);
+ unset($GLOBALS['USER']);
redirect($FULLME, get_string('sessionerroruser', 'error'), 2);
}

0 comments on commit c9e2e3f

Please sign in to comment.