PDA

View Full Version : FAQ: Going to certain links loggs me out!


Citizen
11-26-2008, 04:07 PM
Don't worry, accessing a certain link is not logging you out.

First, lets talk about how cookies work, and how cookies work with phpfox (and logging in for most sites).

Cookies are what is saved to keep you logged in after you exit a site. For phpfox, cookies and sessions are used to log you in. Cookies are specified for a particular range, and that range only.

For instance, if you log into a site and the cookie saves you as http://www.yourdomain.com, you will NOT be logged in for http://yourdomain.com. The difference is the www.

This is not a bug, its how cookies work. For most sites, http://www. and http:// point to the same content, so its easy to think that you've been logged out.

To prevent running into this, it is best to be consistant on whether to use www. or just http://

Additionally, you can set up your .htaccess to redirect one to the other and avoid it all together.