WordPress.org

Ready to get started?Download WordPress

Forums

Password protect post (IE failure) (3 posts)

  1. dawg
    Member
    Posted 8 years ago #

    I am writing a series on the killings of the Women of Juarez.

    I did a film review that I did not want to detract from the series so I password protected it.

    This seems to be a good and simple fix as all a reader would have to do is click the link and read the post.

    Password is read

    It works for me in FF but IE it does not work?

    I have never tried to password protect an entry before and am not aware if there are any issues regarding IE.

    There is a link (reviewing the movie)This is the problem in IE

    http://nvfc.us/blog/?p=49

    TIA

  2. dawg
    Member
    Posted 8 years ago #

    Now I never like to bump threads but I am still looking for an answer to the oddity with IE not recognizing that an entry is password protected???

    TIA

  3. kenyong
    Member
    Posted 8 years ago #

    Re: IE password protected post (posts) fail (failure) fix

    I have googled for quite some time for the same issue.

    Finally, I found it and after tested it out, it's all fine now.

    The solution (fix):
    In your wp-pass.php file, look for

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

    replace with:

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

    It should be okay now. Try it in both IE and Firefox.

    All credit goes to http://wordpress.org/support/topic/12541?replies=3

    The above link contains detailed info on how to solve this issue.

Topic Closed

This topic has been closed to new replies.

About this Topic