Ben Huson
Ben Huson
What is the URL in your WordPress settings - Settings > General? Does that have "www" or not?
I haven't done much testing with SSL. At what point is it defaulting to http? When it redirects to the login page? After logging in?
Hi @espenlg I make a few changes to get it to work last time but it wasn't clear which change fixed the issue. Please could you try the `Update 1`...
Do you use any sort of caching on the site?
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...
Development in wpengine branch: https://github.com/benhuson/password-protected/tree/wpengine
@Zegnat I have contacted WP Engine to ask it this might work with their caching setup
Thanks, I'll try adding that anyway as it is probably needed for other caching implementations too.
Just noticed I already do that: https://github.com/benhuson/password-protected/blob/master/password-protected.php#L88 I might split it out from the is_active() method to make it more obvious in the code.
Thanks for your contribution. Sorry I haven't got round to merging it yet. I want to refactor a few things and add support for customising the URL via a filter...