Browse files

Revert "Merge branch 'MDL-56129-31' of git://…

…moodle into MOODLE_31_STABLE"

This reverts commit 1483afc, reversing
changes made to 9edd48f.
  • Loading branch information...
danpoltawski committed Oct 27, 2016
1 parent bf639be commit 17f1295e23bbfa0d07f4de2bc81e2e41d7f60578
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/classes/session/manager.php
@@ -252,12 +252,7 @@ protected static function prepare_cookies() {
// Set configuration.
// 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.

0 comments on commit 17f1295

Please sign in to comment.