diff --git a/lib/setup.php b/lib/setup.php index 47ee5b4dfe3..364341c1e50 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -314,11 +314,6 @@ $CFG->httpswwwroot = $CFG->wwwroot; } else { $_COOKIE['MoodleSessionTest'.$CFG->sessioncookie] = 'error!!'; } - } else { - if (empty($_COOKIE['MoodleSessionTest'.$CFG->sessioncookie])) { - setcookie('MoodleSessionTest'.$CFG->sessioncookie, $_SESSION['SESSION']->session_test, 0, '/'); - $_COOKIE['MoodleSessionTest'.$CFG->sessioncookie] = $_SESSION['SESSION']->session_test; - } } if (! isset($_SESSION['USER'])) { $_SESSION['USER'] = new object;