Bug 1588613: Later session start so we can use DB config table
The session init code relies on $CFG->session_timeout, which is
normally defined in the config table. So, we need to start the
session after opening the database connection.
(In the event that there's an earlier session start, for instance
due to an error message, this will cause the session for that
page load to disregard any database config values. But that's not
a show-stopper, and there's no easy way to fix it.)
Change-Id: Iffbeebc8e92929970a558ff0fbc726719bb92741
behatnotneeded: Covered by existing tests
(cherry picked from commit 12cb73cf14e7cd0fb5e4b03615e0dfb501bf86c3)
Reviewed: https:/ /reviews. mahara. org/6576 /git.mahara. org/mahara/ mahara/ commit/ 3247e26c153e998 b63420bc9b101a4 553220a1bc
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.10_STABLE
commit 3247e26c153e998 b63420bc9b101a4 553220a1bc
Author: Aaron Wells <email address hidden>
Date: Wed Jun 8 19:09:58 2016 +1200
Bug 1588613: Later session start so we can use DB config table
The session init code relies on $CFG->session_ timeout, which is
normally defined in the config table. So, we need to start the
session after opening the database connection.
(In the event that there's an earlier session start, for instance
due to an error message, this will cause the session for that
page load to disregard any database config values. But that's not
a show-stopper, and there's no easy way to fix it.)
Change-Id: Iffbeebc8e92929 970a558ff0fbc72 6719bb92741 fb5e4b03615e0df b501bf86c3)
behatnotneeded: Covered by existing tests
(cherry picked from commit 12cb73cf14e7cd0