• We have a website, and within the website is a password protected blog for members only.

    The very first time you click the blog link, it does ask you for username and password. But after that, despite quitting the browser, shutting down, clearing your cache, and rebooting the computer, it never requires you to enter the username and password anymore.

    Is there anything we can do so that it always asks for the login?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I had the same issue and I found a fix on another thread.

    Download and save a copy of a file called wp-pass.php.

    Open it up and find this:

    // 10 days
    setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);

    Change the number 864000 to however long you want (in seconds) before it clears the cache.

    I set mine to clear after 20 minutes, or 1200 seconds

    I am no expert so save anything you are making changes to, but it worked for me.

    Thread Starter yukon4

    (@yukon4)

    Thank you! Thank you! I will try this for sure, and yes, I’ll be sure to make copies before making changes, just “in case”.

    rmichelli

    (@rmichelli)

    Changing the time amount has not worked for me. I have cleared out the cache before the change and tried on different computers and with different browsers and it still keeps the person logged in.

    I am using this for a client protected area on my site and NEED the user to be required to enter the password each time they access that protected page.

    At the beginning of the code there is: // 10 days
    Should that be deleted as well?

    esmi

    (@esmi)

    Please post your own topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Password Protected Page Doesn't Ask for Password’ is closed to new replies.