View Full Version : Cookies

02-25-2010, 05:22 AM
Is there anyway to make it so that if the person goes to this site it automatically logs them out and shows the login box.

Ill explain, I am making a portal, but when you go to the portal and the cookies keep you logged in the nav menu shows up. I want to make it so the nav menu doesn't show up and the login box does.

02-25-2010, 08:09 AM
After successful login you are setting a cookie ? If you use a session variable instead, by default the session should end as soon as all browser windows are closed. So next time the user comes to the portal, he needs to login again.

Of course I mean the default session behavior when session.cookie_lifetime is 0 and has not been set to some nonzero value in php.ini, .htaccess or somewhere else.