• Resolved pierrehooker

    (@pierrehooker)


    Hello, I inherited a site using this plugin. When going to the blocked page I get the login message. Upon logging in I get the same login message. However it bounces me from the secure to the insecure version of the page – which shouldnt even be possible as I have https enforced via htacess.

    If I click the login link from this page it takes me to a page where it says I am already logged in.

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    My guess would be that the person who set it up hard-coded “http” into a login redirect (likely in the login shortcode, which accepts a “redirect_to” attribute). That would be the ONLY way I could see the form posting from https to http, since otherwise the form would post back to the page it’s already on. That would also explain why you’re logging in and then not seeing yourself logged since the WP auth cookie would be set for https (which wouldn’t be recognized when you land on the http version of the site)

    Look at the shortcode – if it’s got a redirect_to attribute set in it, make sure it’s pointing to the secure URL. If it’s not there, look in the theme’s functions.php for any redirects that may be pointing to an insecure URL.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Content doesnt unlock after login’ is closed to new replies.