Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Cookies

  1. #1
    New Coder
    Join Date
    Feb 2010
    Thanked 0 Times in 0 Posts


    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.

  • #2
    Regular Coder
    Join Date
    Mar 2006
    Thanked 37 Times in 37 Posts
    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.

  • Users who have thanked SKDevelopment for this post:

    SBDTHRU (02-25-2010)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts