Hi all,

I have a single drupal installation running on 2 domains (e.g. example.com, example.es). The language is negotiated by the domain used. My problem is, that I want the same session (cookie domain) across all domains (example.com, www.example.com, example.es, www.example.es). But setting cookie_domain to 'example.com' in /sites/default/settings.php doesn't help.

I couldn't find anything in docs/google, although I think this must be a very common issue. Anyone any experience with this?

Comments

jeff h’s picture

Unfortunately this is not easy to do. It's easy if your multiple sites are on subdomains of the same base domain; in this case you would set the $cookie_domain in your settings.php file(s) but if you require different base domains as in your example, it's difficult and I have not found an existing module that answers this problem.

Jeff

colan’s picture

See the discussion over at http://drupal.org/node/415354 for details on this issue.