mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #35562
[Bug 1588613] [NEW] Mahara not respecting session lifetime setting from admin config page
Public bug reported:
It seems that after the last round of session fixing bugs, Mahara no
longer respects the session lifetime setting that the admin can set on
the site configuration page.
This setting is stored in the database config table as
"session_timeout". It's then retrieved from the database during session
setup, and loaded into the "session.gc_maxlifetime" ini value.
The problem is, we are now initiating the session *before* we launch the
database connection. So when we are setting session.gc_maxlifetime,
session_timeout isn't available, and instead we use the default value of
1440 seconds = 24 minutes.
The quick workaround is to add your session_timeout setting to your
config.php:
$cfg->session_timeout = 14400; // session timeout of 4 hours
** Affects: mahara
Importance: High
Status: Confirmed
** Affects: mahara/15.04
Importance: High
Status: Confirmed
** Affects: mahara/15.10
Importance: High
Status: Confirmed
** Affects: mahara/16.04
Importance: High
Status: Confirmed
** Affects: mahara/16.10
Importance: High
Status: Confirmed
** Also affects: mahara/15.10
Importance: Undecided
Status: New
** Also affects: mahara/16.10
Importance: Undecided
Status: New
** Also affects: mahara/15.04
Importance: Undecided
Status: New
** Also affects: mahara/16.04
Importance: Undecided
Status: New
** Changed in: mahara/15.04
Milestone: None => 15.04.8
** Changed in: mahara/15.10
Milestone: None => 15.10.4
** Changed in: mahara/16.04
Milestone: None => 16.04.1
** Changed in: mahara/16.10
Milestone: None => 16.10.0
** Changed in: mahara/15.04
Importance: Undecided => High
** Changed in: mahara/15.10
Importance: Undecided => High
** Changed in: mahara/16.04
Importance: Undecided => High
** Changed in: mahara/16.10
Importance: Undecided => High
** Changed in: mahara/16.10
Status: New => Confirmed
** Changed in: mahara/16.04
Status: New => Confirmed
** Changed in: mahara/15.10
Status: New => Confirmed
** Changed in: mahara/15.04
Status: New => Confirmed
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1588613
Title:
Mahara not respecting session lifetime setting from admin config page
Status in Mahara:
Confirmed
Status in Mahara 15.04 series:
Confirmed
Status in Mahara 15.10 series:
Confirmed
Status in Mahara 16.04 series:
Confirmed
Status in Mahara 16.10 series:
Confirmed
Bug description:
It seems that after the last round of session fixing bugs, Mahara no
longer respects the session lifetime setting that the admin can set on
the site configuration page.
This setting is stored in the database config table as
"session_timeout". It's then retrieved from the database during
session setup, and loaded into the "session.gc_maxlifetime" ini value.
The problem is, we are now initiating the session *before* we launch
the database connection. So when we are setting
session.gc_maxlifetime, session_timeout isn't available, and instead
we use the default value of 1440 seconds = 24 minutes.
The quick workaround is to add your session_timeout setting to your
config.php:
$cfg->session_timeout = 14400; // session timeout of 4 hours
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1588613/+subscriptions
Follow ups
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Robert Lyon, 2016-10-21
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Son Nguyen, 2016-07-11
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Robert Lyon, 2016-07-11
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Robert Lyon, 2016-06-10
-
[Bug 1588613] A change has been merged
From: Mahara Bot, 2016-06-10
-
[Bug 1588613] A change has been merged
From: Mahara Bot, 2016-06-10
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Robert Lyon, 2016-06-09
-
[Bug 1588613] A change has been merged
From: Mahara Bot, 2016-06-09
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Robert Lyon, 2016-06-09
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Robert Lyon, 2016-06-08
-
[Bug 1588613] A patch has been submitted for review
From: Mahara Bot, 2016-06-08
-
[Bug 1588613] A patch has been submitted for review
From: Mahara Bot, 2016-06-08
-
[Bug 1588613] A patch has been submitted for review
From: Mahara Bot, 2016-06-08
-
[Bug 1588613] A change has been merged
From: Mahara Bot, 2016-06-08
-
[Bug 1588613] A patch has been submitted for review
From: Mahara Bot, 2016-06-08
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Aaron Wells, 2016-06-08
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Aaron Wells, 2016-06-08
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Aaron Wells, 2016-06-08
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Aaron Wells, 2016-06-08
-
[Bug 1588613] Re: Mahara not respecting session lifetime setting from admin config page
From: Aaron Wells, 2016-06-03