mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Revert "Merge branch 'MDL-56129-master' of git://github.com/andrewnicols/moodle"
This reverts commit aaa2788e42361b5e3032feacd9c0534fe47cb69c, reversing changes made to 80b74762c9dad6c5127115f7146cfdf46ad70ab4.
This commit is contained in:
parent
6a17bdec92
commit
1810eb1bf8
@ -252,12 +252,7 @@ class manager {
|
||||
|
||||
// Set configuration.
|
||||
session_name($sessionname);
|
||||
// The session cookie expiry time cannot be extended so this needs to be set to a reasonable period, longer than
|
||||
// the sessiontimeout.
|
||||
// This ensures that the cookie is unlikely to timeout before the session does.
|
||||
$sessionlifetime = $CFG->sessiontimeout + WEEKSECS;
|
||||
session_set_cookie_params($sessionlifetime, $CFG->sessioncookiepath, $CFG->sessioncookiedomain,
|
||||
$cookiesecure, $CFG->cookiehttponly);
|
||||
session_set_cookie_params(0, $CFG->sessioncookiepath, $CFG->sessioncookiedomain, $cookiesecure, $CFG->cookiehttponly);
|
||||
ini_set('session.use_trans_sid', '0');
|
||||
ini_set('session.use_only_cookies', '1');
|
||||
ini_set('session.hash_function', '0'); // For now MD5 - we do not have room for sha-1 in sessions table.
|
||||
|
Loading…
x
Reference in New Issue
Block a user