new session timeout handling + gecko fix in moodlelib.php - merged from MOODLE_15_STABLE

This commit is contained in:
skodak
2005-09-23 18:38:50 +00:00
parent 751e91c888
commit 1c6932d825
3 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
$_SESSION['SESSION'] = new object;
$_SESSION['SESSION']->session_test = random_string(10);
if (!empty($_COOKIE['MoodleSessionTest'.$CFG->sessioncookie])) {
define('SESSION_HAS_TIMED_OUT', 'true');
$_SESSION['SESSION']->has_timed_out = true;
}
setcookie('MoodleSessionTest'.$CFG->sessioncookie, $_SESSION['SESSION']->session_test, 0, '/');
$_COOKIE['MoodleSessionTest'.$CFG->sessioncookie] = $_SESSION['SESSION']->session_test;