Page 1 of 1

Cookies in root domain (S9Y or Apache setup or?)

Posted: Thu Dec 17, 2009 11:05 am
by johncanary
Good morning.
A quick question.
  1. S9Y installed for http://www.example.com sets cookies for example.com
  2. S9Y installed for blog.example.com sets cookies for blog.example.com
How can I make sure to get cookies set for http://www.example.com in the first case?

Apache configuration? (only .htaccess possible)
S9Y cofiguration?
Hacking S9Y?

Thanks for your tips.

The idea is to have some subdomains like static.example.com for files
where no cookies are used at all.

Yours
John

P.S. I still have some Google Wave invites if someone needs one.
Write me [info at my domain fcon21.biz] in that case from the
email address you wish to have an invitation sent to. Don't post
it here.

Re: Cookies in root domain (S9Y or Apache setup or?)

Posted: Thu Dec 17, 2009 5:00 pm
by garvinhicking
Hi!

There's a php.ini cookie.domain option that allows you to fixate "example.com" as a domain, also when blog.example.com is used. That should do the trick, I've never tried that though.

Regards,
Garvin