[support] Session Cookies and subdomains

Cog Rusty cog.rusty at gmail.com
Fri Aug 22 20:22:33 UTC 2008


On Fri, Aug 22, 2008 at 3:46 PM, Daniel Carrera <daniel.carrera at zmsl.com> wrote:
> Daniel Carrera wrote:
>> Earnie Boyd wrote:
>>> The fix is easy:  1) settings.php
>>> 2) search for $cookie_domain
>>> 3) edit the line to set it to the domain you desire, e.g. www.foo.org.
>>
>> And if I set the domain to .foo.org then the same cookie will apply to
>> all domains under foo.org? (foo.org, www.foo.org, test.foo.org, etc)
>
> Setting it to .foo.org didn't work, but setting it to some other domain
> (foo.org or www.foo.org) works correctly. I'm happy with that. I don't
> have my heart set on a cookie domain.


That should be fine. The Drupal variable $cookie_domain =
'example.com' is not the same thing as
ini_set('session.cookie_domain', ".example.com") with the front dot,
but it results in the same thing if I remember correctly.


> Thanks a lot!
>
> Daniel.
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list