Removed save_session() - no longer needed

This commit is contained in:
moodler 2003-02-27 02:43:34 +00:00
parent 08c17336a7
commit 55271c3047
7 changed files with 0 additions and 12 deletions

View File

@ -54,7 +54,6 @@
$USER->site = $CFG->wwwroot;
$USER->admin = true;
$USER->teacher["$site->id"] = true;
save_session("USER");
redirect("$CFG->wwwroot/user/edit.php?id=$user->id&course=$site->id");

View File

@ -94,7 +94,6 @@
if (isset($USER->id)) {
$SESSION->fromdiscussion = "$CFG->wwwroot";
save_session("SESSION");
if (forum_is_subscribed($USER->id, $newsforum->id)) {
$subtext = get_string("unsubscribe", "forum");
} else {

View File

@ -35,7 +35,6 @@
$USER = $user;
$USER->loggedin = true;
$USER->site = $CFG->wwwroot; // for added security
save_session("USER");
set_moodle_cookie($USER->username);

View File

@ -42,12 +42,10 @@
$USER->loggedin = true;
$USER->site = $CFG->wwwroot;
save_session("USER");
if ( ! empty($SESSION->wantsurl) ) { // Send them where they were going
$goto = $SESSION->wantsurl;
unset($SESSION->wantsurl);
save_session("SESSION");
redirect("$goto");
}

View File

@ -41,7 +41,6 @@
if ($USER->username == "guest") {
$USER->lang = $CFG->lang; // Guest language always same as site
}
save_session("USER");
if (!update_user_in_db()) {
error("Weird error: User not found");
@ -54,7 +53,6 @@
set_moodle_cookie($USER->username);
unset($SESSION->lang);
save_session("SESSION");
if (user_not_fully_set_up($USER)) {
$site = get_site();
@ -66,7 +64,6 @@
} else {
$wantsurl = $SESSION->wantsurl;
unset($SESSION->wantsurl);
save_session("SESSION");
redirect($wantsurl);
}
@ -86,7 +83,6 @@
if (empty($SESSION->wantsurl)) {
$SESSION->wantsurl = $_SERVER["HTTP_REFERER"];
save_session("SESSION");
}
if (empty($frm->username)) {

View File

@ -5,8 +5,6 @@
$USER = NULL;
$SESSION = NULL;
save_session("USER");
save_session("SESSION");
redirect($CFG->wwwroot);
?>

View File

@ -87,7 +87,6 @@
foreach ($usernew as $variable => $value) {
$USER->$variable = $value;
}
save_session("USER");
redirect("view.php?id=$user->id&course=$course->id", get_string("changessaved"));
} else {
redirect("../admin/user.php", get_string("changessaved"));