Support » Plugin: WP-Members: Membership Framework » Login redirects but doesn't login the user

Viewing 7 replies - 1 through 7 (of 7 total)
  • Additional data: while in the redirected area, I clicked on the “Forgot Password” link (in the Login Status widget), and voila, I was now considered logged in. Most weird….

    Plugin Author Chad Butler

    (@cbutlerjr)

    I’m wondering if you have something that is interfering with the WP-Members process of setting the authentication cookie. You might want to try disabling other plugins and retesting to see if something is in conflict.

    I’ll try that for sure. What’s the name of the cookie – that way I can check to see if it’s set after login.

    Thanks.

    ok – after hitting the “Forgot Password” link in the Login Status widget and therefore being shown as logged in (per the second post above), I see a cookie with the name “wordpress_logged_in_60c…..” I assume this is the one. And indeed I did not see it when the strange behavior was observed. So, you hit the nail in the head. Now, I need to figure out why the cookie isn’t being set …….

    Thanks.

    It appears I misspoke in the previous post. The cookie is being set (it’s actually 3 cookies), but wp-members doesn’t see it until I navigate to another page, as though there is a race condition between building the redirected page and setting of the cookie. If I examine cookies while the Login Status widget claims “logged out”, I see the cookie set.

    My apologies for my stream of debugging reports; just hoping it might match something someone has seen before…..

    Plugin Author Chad Butler

    (@cbutlerjr)

    It sounds like something else is sending things downstream at a different execution point. I think what you need to start with is deactivating other plugins to see what is in conflict.

    OK, here’s the scoop: the base of the url I was redirecting to was not the main base for the site. That is, I have two urls that land in the same site, but only one of them can be the main one. Somehow, this causes the condition I saw, probably due to timing. Maybe it takes another dip to the server to resolve, I dunno. I changed the url to use the main base and now the redirection works fine. I’ll mark the problem resolved. Now, the login page rendering is messed up, but I’ll work on that first before I post anything.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Login redirects but doesn't login the user’ is closed to new replies.