password-protected icon indicating copy to clipboard operation
password-protected copied to clipboard

Using 4.0.1 after entering password user returns to same login page

Open markerobbins opened this issue 11 years ago • 8 comments

I am using your plug-in to require log-in to my site while I am developing it. When user enters the correct log-in password he/she just gets redirected right back to the original log-in screen. If user enters the incorrect password he/she is notified the password is incorrect. If the correct password is entered it does behave differently than if incorrect password is entered in that the correct password returns you to original login screen instead of giving you the "incorrect password" notification but still correct password does not allow entry into the site. Do you have any idea what the problem might be? Thank you Mark

markerobbins avatar Dec 13 '14 09:12 markerobbins

Do you use any sort of caching on the site?

benhuson avatar Feb 12 '15 18:02 benhuson

Same issue for me. No caching on the site and tried on multiple browsers. Administrator and logged in users works properly, when entering the password it seems to reload the login page. If I intentionally enter an incorrect password it gives me the incorrect password notification.

clarkm84 avatar Mar 20 '15 13:03 clarkm84

I was having the same problem. It started after I changed varnish purge settings. Reverting the settings fixed it.

I still don't understand why doesn't varnish website have updated vcl settings for wordpress. Version 4 came out a while ago and they still don't have anything (except for templates for version 3)...

nariox avatar Apr 17 '15 16:04 nariox

I am new to using this plugin and I'm having the same issue as described previously. When I enter the correct password, it just returns me to the login page with no notification. I can't seem to login using the password at all (before, it would take a few times to get in).

I use WP Engine as my host and have purged all cache in their settings for the site, plus I removed cache from my browsers and I still can't login to the site using the pw I set.

Any idea how to fix this? Thanks.

marcalter avatar Dec 01 '15 18:12 marcalter

I still have the same problem. I really have a need for this kind of plug-in and wish it could be made to work! Mark Robbins

On Tue, Dec 1, 2015 at 1:46 PM, marcalter [email protected] wrote:

I am new to using this plugin and I'm having the same issue as described previously. When I enter the correct password, it just returns me to the login page with no notification. I can't seem to login using the password at all (before, it would take a few times to get in).

I use WP Engine as my host and have purged all cache in their settings for the site, plus I removed cache from my browsers and I still can't login to the site using the pw I set.

Any idea how to fix this? Thanks.

— Reply to this email directly or view it on GitHub https://github.com/benhuson/password-protected/issues/44#issuecomment-161059680 .

markerobbins avatar Dec 01 '15 18:12 markerobbins

Disable caching and all other plugins, see if it works after this. If it doesn't, report to your hosting service.

If disabling plugins helps, you can start enabling them one by one until it fails to work.

nariox avatar Dec 01 '15 20:12 nariox

I ended up contacting my host and that was the problem (with their caching). They agreed to remove it for my specific site and now it's working. Thanks for the advice!

On Tue, Dec 1, 2015 at 3:28 PM, pedronariyoshi [email protected] wrote:

Disable caching and all other plugins, see if it works after this. If it doesn't, report to your hosting service.

If disabling plugins helps, you can start enabling them one by one until it fails to work.

— Reply to this email directly or view it on GitHub https://github.com/benhuson/password-protected/issues/44#issuecomment-161086025 .

marcalter avatar Dec 01 '15 22:12 marcalter

This plugin doesn't work well at the moment with server-side page caching such as Varnish and some hosting solutions that implement server-side caching by default.

The plugin sets a cookie with a name in the format {$site_id}_password_protected_auth if a user successfully logs in.

If you are able to customise your cache settings you may be able to write a caching exception to work around this.

benhuson avatar Dec 01 '15 23:12 benhuson