View Single Post
Old 12-30-2007, 07:32 PM   #1 (permalink)
dav
The Wanderer
 
dav's Avatar
 
Join Date: Dec 2007
Location: Manchester, UK
Posts: 9
Thanks: 1
dav is on a distinguished road
Default Session / Cookie Issue?

Is anyone else use to typing in talkphp.com and missing off the deprecated www?

I just noticed if I login under http://talkphp.com/ then when I click some links that divert me to http://www.talkphp.com/ then I am logged out because the cookie cannot track me.

I'm not sure if this is a vBulletin issue and it's just a simple config change.

I think your the cookies are being set like this:

PHP Code:
setcookie('cookiename'$cookieidtime()+60*60*24*5'/'); 
instead of:

PHP Code:
setcookie('cookiename'$cookieidtime()+60*60*24*5'/''.talkphp.com'); 
or you could create a .htaccess file to reroute all requests for http://www.talkphp.com/ to just http://talkphp.com/

Your probably all going to say just use the "www.", but I hate using it. It's not like it's needed any more anyway.

Any chance we could get this fixed?

Thanks!
dav is offline  
Reply With Quote
The Following User Says Thank You to dav For This Useful Post:
Wildhoney (12-30-2007)