WordPress.org

Ready to get started?Download WordPress

Forums

How to require logout from password protected page (6 posts)

  1. HuskerLiz
    Member
    Posted 4 years ago #

    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.

  2. dalelyles
    Member
    Posted 4 years ago #

    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.

  3. achuntz
    Member
    Posted 4 years ago #

    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/

  4. rbstiff
    Member
    Posted 4 years ago #

    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.

  5. bodybybuck
    Member
    Posted 4 years ago #

    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.

  6. holdengreen
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags