]> git.mjollnir.org Git - moodle.git/commitdiff
Use $CFG->sessioncookie on MOODLEID cookie as well
authormoodler <moodler>
Thu, 16 Oct 2003 13:23:53 +0000 (13:23 +0000)
committermoodler <moodler>
Thu, 16 Oct 2003 13:23:53 +0000 (13:23 +0000)
lib/moodlelib.php

index b897452fbc129b3af1ff8690e8868cd07e4d752e..0eaccf2e2a75e0a87e0cfdc2b7c4e3585750fa46 100644 (file)
@@ -501,7 +501,7 @@ function set_moodle_cookie($thing) {
 /// Sets a moodle cookie with an encrypted string
     global $CFG;
 
-    $cookiename = "MOODLEID{$CFG->prefix}";
+    $cookiename = 'MOODLEID_'.$CFG->sessioncookie;
 
     $days = 60;
     $seconds = 60*60*24*$days;
@@ -515,7 +515,7 @@ function get_moodle_cookie() {
 /// Gets a moodle cookie with an encrypted string
     global $CFG;
 
-    $cookiename = "MOODLEID{$CFG->prefix}"; 
+    $cookiename = 'MOODLEID_'.$CFG->sessioncookie;
 
     if (empty($_COOKIE[$cookiename])) {
         return "";