Skip to content

Commit

Permalink
Revert "Merge branch 'MDL-56129-master' of git://github.com/andrewnic…
Browse files Browse the repository at this point in the history
…ols/moodle"

This reverts commit aaa2788, reversing
changes made to 80b7476.
  • Loading branch information
danpoltawski committed Oct 27, 2016
1 parent 6a17bde commit 1810eb1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/classes/session/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,7 @@ protected static function prepare_cookies() {

// 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.
Expand Down

0 comments on commit 1810eb1

Please sign in to comment.