--- .svn/text-base/settings.php.svn-base	2007-01-16 18:04:36.000000000 -0700
+++ settings.php	2007-03-14 07:26:28.000000000 -0700
@@ -138,16 +138,17 @@ ini_set('url_rewriter.tags',        '');
 
 /**
  * We try to set the correct cookie domain. If you are experiencing problems
- * try commenting out the code below or specifying the cookie domain by hand.
+ * or wanting to share cookies across installations in the same domain
+ * try specifying the $domain and session name by hand.
  */
-if (isset($_SERVER['HTTP_HOST'])) {
-  $domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
-  // Per RFC 2109, cookie domains must contain at least one dot other than the
-  // first. For hosts such as 'localhost', we don't set a cookie domain.
-  if (count(explode('.', $domain)) > 2) {
-    ini_set('session.cookie_domain', $domain);
-  }
+$domain = isset($_SERVER['HTTP_HOST']) ? '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']) : '';
+// Per RFC 2109, cookie domains must contain at least one dot other than the
+// first. For hosts such as 'localhost', we don't set a cookie domain.
+if (count(explode('.', $domain)) > 2) {
+  ini_set('session.cookie_domain', $domain);
 }
+// use a unique session name. Session names only accept alphanumeric characters.
+session_name(md5($domain.conf_path()));
 
 /**
  * Variable overrides:
