From 28e30091f08a6556036c17d010fab10ffbe350fe Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 20 Jan 2003 09:03:35 +0000 Subject: [PATCH] Always. --- login/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/login/index.php b/login/index.php index 2cbb1a4878c..b663689ce87 100644 --- a/login/index.php +++ b/login/index.php @@ -52,20 +52,20 @@ set_moodle_cookie($USER->username); + unset($SESSION->lang); + save_session("SESSION"); + if (user_not_fully_set_up($USER)) { $site = get_site(); session_write_close(); header("Location: $CFG->wwwroot/user/edit.php?id=$USER->id&course=$site->id"); } else if (empty($SESSION->wantsurl)) { - unset($SESSION->lang); - save_session("SESSION"); session_write_close(); header("Location: $CFG->wwwroot"); } else { $wantsurl = $SESSION->wantsurl; - unset($SESSION->lang); unset($SESSION->wantsurl); save_session("SESSION"); session_write_close();