Commit 2403dc44 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

Reflect the reality that config('session_timeout') is already in seconds

Bug1166578

Change-Id: I640455f2606433c75f9af431931ea8d764b4d205
parent fdb78c81
......@@ -33,8 +33,7 @@ defined('INTERNAL') || die();
session_name(get_config('cookieprefix') . 'mahara');
ini_set('session.save_path', '3;' . get_config('dataroot') . 'sessions');
ini_set('session.gc_divisor', 1000);
// Session timeout is stored in minutes in the database
ini_set('session.gc_maxlifetime', get_config('session_timeout') * 60);
ini_set('session.gc_maxlifetime', get_config('session_timeout'));
ini_set('session.use_only_cookies', true);
if ($domain = get_config('cookiedomain')) {
ini_set('session.cookie_domain', $domain);
......
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