Hard Coded?!!??
in a moodle311 code directory:
fgrep 'MoodleSession' ./ -R
.//lang/en/moodle.php:The essential one is the session cookie, usually called MoodleSession. You must allow this cookie in your browser to provide continuity and to remain logged in when browsing the site. When you log out or close the browser, this cookie is destroyed (in your browser and on the server).
.//lang/en/moodle.php:$string['cookiesenabledonlysession_help'] = 'This site uses one session cookie, usually called MoodleSession. You must allow this cookie in your browser to provide continuity and to remain logged in when browsing the site. When you log out or close the browser, this cookie is destroyed (in your browser and on the server).';
.//lib/classes/session/manager.php: $sessionname = 'MoodleSession'.$CFG->sessioncookie;
.//lib/tests/behat/behat_general.php: $session = $this->getSession()->getCookie('MoodleSession');
.//lib/tests/behat/behat_general.php: return download_file_content($url, array('Cookie' => 'MoodleSession=' . $session));
.//lib/tests/behat/behat_general.php: $session = $this->getSession()->getCookie('MoodleSession');
.//lib/tests/behat/behat_general.php: $content = download_file_content($url, array('Cookie' => 'MoodleSession=' . $session));
.//lib/behat/classes/behat_session_trait.php: $sid = $this->getSession()->getCookie('MoodleSession');
Looks like there is more than one place! :|
Uhhhhh ... make a backup of site before playing ... best if you had a dev site me thinks!
Good luck!
'SoS', Ken