Support » Fixing WordPress » How to require logout from password protected page

  • I have set a password protected static page for a church blog. Since this page will include member news, I need to ensure that the information is really protected. Is there a process for requiring logout when a member leaves that page without their logging out of the entire site? I have searched through plugins and haven’t found anything that gives me confidence on this yet. I thought that maybe I had a problem because I was the admin, but a regular member helping me with testing discovered that the page was readily available to her again even after she had logged out of the site, while still on the same computer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m having a similar issue, i.e., the password protection doesn’t seem to reinstate itself once you’ve left the site. For a group that posts some very sensitive material, this is a not good thing.

    I can’t find anything anywhere on this topic except a plugin that doesn’t work. At least in Safari.

    Here is the plug-in but still nothing works. http://www.freemoby.com/2005/05/21/wordpress-plugin-cookie-timeout/

    Change the time under wp-pass.php. It currently keeps the cookie active of 10 days. I changed mine for 30 mins. Hope this helps.

    rbstiff,

    Do you just replace the text “10 days” with “30 minutes” and then save it and it should work?

    I tried that but didn’t seem to work. Any advice? Never done this before.

    Thanks.

    in the wp-pass.php file look for the following line of code:

    setcookie(‘wp-postpass_’ . COOKIEHASH, $_POST[‘post_password’], time() + 864000, COOKIEPATH);

    The 86400 is the number of seconds that the cookie will be active.

    If you only want the cookie to be active for 30 minutes, change 864000 to 1800

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to require logout from password protected page’ is closed to new replies.