1

Topic: Sub domains and cookies

Just a quickie. big_smile If one has forums in several sub domains, i.e:

http://example.com/forum1
http://example.com/forum2

is it merely a case of adding the subdomain name to the cookie path in config.php to stop one getting logged out of one forum, (as far as the browser is concerned), if you browse one of the other forums on that parent domain, or is something else required?


Cheers,

Matt

Re: Sub domains and cookies

Those aren't subdomains, those are subfolders wink
You have two options, you can either keep the same cookie name and set the cookie path or keep the cookie path and set different cookie names. I would set the path for security reasons.

3

Re: Sub domains and cookies

Smartys wrote:

Those aren't subdomains, those are subfolders wink

One day, my mind and fingers will work in sync instead of conspiring against me. big_smile I knew that, honest. http://outgoing.bauchan.org/gifs/nonchwhistle.gif


Smartys wrote:

You have two options, you can either keep the same cookie name and set the cookie path or keep the cookie path and set different cookie names. I would set the path for security reasons.

Cheers. smile I'll go for the path as you advise. Thanks again.