MDL-16613 refactore session IP tracking; MDL-14213 improved message when IP changes; MDL-17754 SID is regenerated when terminating session and old session is deleted

This commit is contained in:
skodak
2009-01-02 23:49:29 +00:00
parent 94275cbbc2
commit 9bda43e6be
5 changed files with 29 additions and 23 deletions
+6 -5
View File
@@ -386,11 +386,7 @@ global $HTTPSPAGEREQUIRED;
}
}
/// start session and prepare global $SESSION, $USER
session_get_instance();
$SESSION = &$_SESSION['SESSION'];
$USER = &$_SESSION['USER'];
/// initialise ME's
if (defined('FULLME')) { // Usually in command-line scripts like admin/cron.php
$FULLME = FULLME;
$ME = FULLME;
@@ -399,6 +395,11 @@ global $HTTPSPAGEREQUIRED;
$ME = strip_querystring($FULLME);
}
/// start session and prepare global $SESSION, $USER
session_get_instance();
$SESSION = &$_SESSION['SESSION'];
$USER = &$_SESSION['USER'];
/// Load up theme variables (colours etc)
if (!isset($CFG->themedir)) {