Index: sites/default/settings.php
===================================================================
RCS file: /cvs/drupal/drupal/sites/default/settings.php,v
retrieving revision 1.41
diff -u -p -r1.41 settings.php
--- sites/default/settings.php 7 Feb 2007 10:58:31 -0000 1.41
+++ sites/default/settings.php 11 Feb 2007 01:38:48 -0000
@@ -137,8 +137,7 @@ ini_set('session.use_trans_sid', 0);
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.
+ * We try to set the correct cookie domain.
*/
if (isset($_SERVER['HTTP_HOST'])) {
$domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
@@ -150,6 +149,19 @@ if (isset($_SERVER['HTTP_HOST'])) {
}
/**
+ * On some sites, multiple domains or subdomains may point to the same site.
+ * For example, example.com may redirect to foo.example.com. Some browsers
+ * get confused and send the more generic .example.com cookie, while Drupal
+ * stores the more specific .foo.example.com cookie, and the result is the
+ * failure of said browsers to login unless cookies are cleared, since for
+ * security reasons, foo.example.com can't delete cookies from example.com.
+ *
+ * If this describes your setup, you will need to comment out the below code
+ * and set the cookie domain manually, to the more generic domain.
+ */
+#ini_set('session.cookie_domain', '.example.com');
+
+/**
* Variable overrides:
*
* To override specific entries in the 'variable' table for this site,