Index: includes/bootstrap.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v retrieving revision 1.206 diff -u -p -r1.206 bootstrap.inc --- includes/bootstrap.inc 10 Jan 2008 22:47:17 -0000 1.206 +++ includes/bootstrap.inc 7 Apr 2008 22:19:06 -0000 @@ -324,6 +324,11 @@ function conf_init() { $cookie_domain = check_plain($_SERVER['HTTP_HOST']); } } + if (ini_get('session.cookie_secure')) { + // If the user specifies secure session cookies, use different identifiers + // for HTTPS and HTTP. + $session_name .= 'SSL'; + } // Strip leading periods, www., and port numbers from cookie domain. $cookie_domain = ltrim($cookie_domain, '.'); if (strpos($cookie_domain, 'www.') === 0) {