I think this might solve the mysterious problems with

session garbage collection and timeouts not working.

Note: upgrading to this will KILL all current sessions, so
you will need to log back in.
This commit is contained in:
moodler 2004-04-15 14:46:54 +00:00
parent 811cf8919d
commit 39e1c4158f
2 changed files with 7 additions and 10 deletions

View file

@ -101,6 +101,12 @@
ini_set('session.gc_maxlifetime', $CFG->sessiontimeout);
}
/// Set custom session path
if (!file_exists("$CFG->dataroot/sessions")) {
make_upload_directory('sessions');
}
ini_set('session.save_path', "$CFG->dataroot/sessions");
/// Set sessioncookie variable if it isn't already
if (!isset($CFG->sessioncookie)) {
$CFG->sessioncookie = '';