Log in

View Full Version : How to stay logged in?


supermak
09-15-2009, 07:46 PM
Hi, I've discovered that when some users logs into http://www.mydomain.com everything seems normal, but if you enter http://mydomain.com (without the "www") users doesn?t appear to be logged in.

Any ideas how to fix this?

Tks in advance,

kevcj
09-15-2009, 07:58 PM
Thats probably because your cookie domain is setup wrong.

vbulletin control panel - vbulletin options - Cookies and HTTP Header Options - cookie domain needs to be set to .domainname.com

another fix is to add a 301 redirect to your .htaaccess file and force http request to be sent to www. That way if someone types in http:// they will be redirected to www.

HMBeaty
09-15-2009, 08:04 PM
you could also use this instead of using .htaccess https://vborg.vbsupport.ru/showthread.php?t=222898

supermak
09-16-2009, 03:51 AM
vbulletin control panel - vbulletin options - Cookies and HTTP Header Options - cookie domain needs to be set to .domainname.com

Cool! this worked fine, tks a lot!