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

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
johncanary
Regular
Posts: 116
Joined: Mon Aug 20, 2007 4:00 am
Location: Spain
Contact:

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

Post 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.
Yours John
: John's Google+ Profile
: John's E-Biz Booster Blog powered by Serendipity 1.7/PHP 5.3.14
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply