I currently have a site translated in to 7 languages.

As language negotiation is domain based, the admin user is logged-out when switching languages.

I have changed the value of $cookie_domain in settings.php - to no avail.

Is there any way to perserve logged-in state when changing languages?

Thanks

Comments

cog.rusty’s picture

Can you be more specific? What did you do? Was the URL like http://language.example.com and you set $cookie_domain='example.com';?

hunthunthunt’s picture

Sure, I have 7 domains, as such:

www.example.eu (principal domain)
www.example.fr
www.example.it
etc

In an attempt to keep admins logged in, I tried:

$cookie_domain='www.example.eu';
&
$cookie_domain='server IP address';

Neither of which worked.

Thanks for help, am kind of stuck with this.

cog.rusty’s picture

As far as I know you can't maintain cookies across different domains. But I am no expert.

---- Edited to add:

Looking around I found this thread which may get you somewhere:

http://drupal.org/node/180514