Fixing an issue, where session cookie is not found if Drupal is installed under base domain (example.com, without www) and Moodle in a subdomain (moodle.example.com). Assuming custom cookie domain is not used, Drupal does not hard code the leading dot in the session cookie hash, so Moodle should mirror that behavior.