Use $CFG->sessioncookie on MOODLEID cookie as well

This commit is contained in:
moodler 2003-10-16 13:23:53 +00:00
parent c1f5319532
commit 6de85459d2

View 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 "";