Log in

View Full Version : Cookie Problem


nox1818
01-21-2009, 08:59 AM
Hi,

Can anyone help me out with a problem i'm having. I currently have a vBulletin login on a external php page which seems to work just fine, just when i use it to login to my forum it will show that i didn't login. So i went in the admin panel and changed the cookie path to the second option besideds the default / to mysite.com, now it works just fine and shows the Welcome back user and private messages on a external page but when i go to my forum homepage and try to logout it doesnt work it keeps me logged in, if i change the cookie path back to / then it works fine but then the external login i have dosent, by showing me that i havent logged in. How can i fix it so it works with both my external page and the forum allowing me to login and logout on either the external page or from the forum home page.

Dismounted
01-21-2009, 09:30 AM
Change your cookie domain to ".yoursite.com" (without quotes, with preceding dot).

nox1818
01-21-2009, 07:34 PM
I have done this, but then it makes the login on my forum not function correclty cause when i login from the forum it works fine, but not logging out, it just keeps me logged in unless i change it back to the default /

Dismounted
01-22-2009, 02:30 AM
Cookie Path is different from Cookie Domain. The setting of "/" should be for Cookie Path.

nox1818
01-23-2009, 11:33 PM
Why wont my forum log me out when having the cookie domain set as .mysite.com and when using a subdomain for my forum?

I can login and logout using mysite.com/forums

But i cant logout when using forums.mysite.com

How can i fix this?

Dismounted
01-24-2009, 02:42 AM
If you look the log out URL, what is it?