Skip to content

Commit

Permalink
Set sessionIP when logging-in as a user
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Nov 29, 2004
1 parent 027a160 commit 861a9cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions course/loginas.php
Expand Up @@ -68,6 +68,7 @@
$USER->loggedin = true;
$USER->site = $CFG->wwwroot;
$USER->realuser = $teacher_id;
$USER->sessionIP = md5(getremoteaddr()); // Store the current IP in the session

if (isset($SESSION->currentgroup[$course->id])) { // Remember current setting for later
$SESSION->oldcurrentgroup = $SESSION->currentgroup[$course->id];
Expand Down

0 comments on commit 861a9cf

Please sign in to comment.