]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14617 removed pre PHP 5.2.0 coocie compatibility stuff
authorskodak <skodak>
Thu, 1 May 2008 21:17:33 +0000 (21:17 +0000)
committerskodak <skodak>
Thu, 1 May 2008 21:17:33 +0000 (21:17 +0000)
lib/moodlelib.php

index b745b0fc0911d314bd48d80e769597abbf5e3b2e..a3869beea49058ba50977b86019bada9fc421161 100644 (file)
@@ -2095,11 +2095,7 @@ function require_logout() {
         error_log('MoodleSessionTest cookie could not be set in moodlelib.php:'.__LINE__);
         error_log('Headers were already sent in file: '.$file.' on line '.$line);
     } else {
-        if (check_php_version('5.2.0')) {
-            setcookie('MoodleSessionTest'.$CFG->sessioncookie, '', time() - 3600, $CFG->sessioncookiepath, '', $CFG->cookiesecure, $CFG->cookiehttponly);
-        } else {
-            setcookie('MoodleSessionTest'.$CFG->sessioncookie, '', time() - 3600, $CFG->sessioncookiepath, '', $CFG->cookiesecure);
-        }
+        setcookie('MoodleSessionTest'.$CFG->sessioncookie, '', time() - 3600, $CFG->sessioncookiepath, '', $CFG->cookiesecure, $CFG->cookiehttponly);
     }
 
     unset($_SESSION['USER']);