mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Use $CFG->sessioncookie on MOODLEID cookie as well
This commit is contained in:
parent
c1f5319532
commit
6de85459d2
1 changed files with 2 additions and 2 deletions
|
@ -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 "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue