[support] $cookie_domain not working

Jamie Holly hovercrafter at earthlink.net
Tue Mar 17 21:00:34 UTC 2009


Since you are changing the tld (top level domain), simply changing 
$cookie_domain won't work. Browsers won't send out the cookie from one 
tld to another.

The only easy fix would be to setup a subdomain of saltwebsites.com for 
the German version, something like de.saltwebsites.com and then redirect 
saltwebsites.de to this new site. Then you can set your cookie_domain to 
.saltwebsites.com and it would work across all subdomains.

Jamie Holly
http://www.intoxination.net 
http://www.hollyit.net



John Fletcher wrote:
>
> I’m using saltwebsites.de to provide the german version of 
> saltwebsites.com.
>
> I set $cookie_domain in my settings.php file so that I can preserve 
> logins across domains but it’s not working – saltwebsites.de doesn’t 
> recognise that I’m logged in on saltwebsites.com. Additionally 
> checking my browser cookies shows that I’m still getting cookies from 
> saltwebsites.de. It seems to be rudely disobeying the setting. Anyone 
> have any idea why that might be? (I only have 
> sites/default/settings.php – no sites set up other than “default”).
>
> Fletch
>
> ------------------------------------------------------------------------
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]


More information about the support mailing list