TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Feedback (http://www.talkphp.com/feedback/)
-   -   Session / Cookie Issue? (http://www.talkphp.com/feedback/1821-session-cookie-issue.html)

dav 12-30-2007 07:32 PM

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!

Wildhoney 12-30-2007 07:36 PM

Good point. It would appear that when Karl installed vBSEO, he overwrote the 301 redirection from the non-www version to the www version. I'll get right on it and sort that out now. Thanks for pointing it out!

dav 12-30-2007 07:56 PM

Hahaha cheers mate!

Thought I was going to get flamed for that post!

Thanks!

Wildhoney 12-30-2007 07:57 PM

;-) Don't be silly!


All times are GMT. The time now is 10:01 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0