• Aaron Wells's avatar
    Bug 1588613: Later session start so we can use DB config table · 12cb73cf
    Aaron Wells authored
    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
init.php 16.5 KB