Commit 1e157879 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1500774: Use correct path for deleting old sessions"

parents e2d001a8 4deca621
......@@ -1894,7 +1894,7 @@ function auth_handle_institution_expiries() {
* out session files of users whose sessions have timed out.
*/
function auth_remove_old_session_files() {
$basedir = get_config('dataroot') . 'sessions/';
$basedir = get_config('sessionpath');
// delete sessions older than the session timeout plus 2 days
$mintime = time() - get_config('session_timeout') - 2 * 24 * 60 * 60;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment