Support » Plugin: WordPress Persistent Login » Subscribers Cannot Log Out

  • Resolved houseminute

    (@houseminute)


    Hi there! We’ve been using Persistent Login for a couple of years and have loved it. Recently, however, we see that our Subscribers cannot succeed in logging out. If they choose Logout from the menu, they’ve popped back to the homepage, giving the appearance of having logged out. But if they go to the menu, the Logout option is still enabled, and there’s no Login option (obviously). If they again choose Logout, they’re taken to the WP logout “are you sure?” message. Even choosing this will not log them out. For now, we’ve had to disable the plugin while trying to figure out what’s happening. Anyone else experiencing this, or is it a joy unique to my site? We’re running WP 5.7. Thanks much for any suggestions or confirmation of a bug!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author lukeseager

    (@lukeseager)

    Hi there,

    Thanks for getting in touch.

    I am able to logout okay on my website by using the logout link in the admin bar of wordpress.

    Are you using a specific plugin to display your login/logout links? Or a function? I can try and test things out my end.

    Thanks,
    Luke

    Thread Starter houseminute

    (@houseminute)

    Hi Luke, thank you so very much for your reply!

    We’re not using a specific plugin, but we do have our members log in on quietself.com/login. We’re going to be modifying the menu before the end of the week, but I don’t think that it’s a menu issue. If anything, I suspect that it’s just a login page issue, which didn’t used to be an issue. Maybe due to 5.7 update? We’ll keep on it and I’ll report back if we resolve it or if it remains unresolved. We sure love using it. Such a great courtesy to offer our members. It’ll be a sad day at QS if we have to let it go.

    Again, thanks so much!

    Plugin Author lukeseager

    (@lukeseager)

    Thanks for the information, I’ll keep an eye out my end, if you continue to have issues, please just let me know.

    Thread Starter houseminute

    (@houseminute)

    Hi Luke –

    Here’s a little more info about what’s happening. Perhaps you can help us get this working again on our site:

    Original Menu logout was flawless, for more than 2 years. Not sure at what version things went south – my bad for not keeping track of that – but it’s definitely not working now.

    Version just prior to 1.3.21, logout issue flow was as:

    Log in – go to some pages

    Log out – pops you back to home page but menu still shows Logout (not Login)

    Choose Logout again – presented with the WP “you’re attempting to log out of QuietSelf.com” – click log out link – you’re taken back to the home page but the menu STILL says Logout (not Login), although you’re actually logged out.

    Now, following an update to WP Persistent Login v1.3.21, this seems to be the new behavior:

    Log in – go to some pages

    Log out – you’re taken immediately to the the WP “you’re attempting to log out of QuietSelf.com” page – click the “log out” link – you’re taken back to the home page but the menu still says Logout (not Login), although you actually are logged out.

    To verify, choose My QuietSelf page, which loads and the menu now says “Login” (as it should).`

    We’ve had to disable the plugin until we get this sorted, which is sad. It’s really a terrific customer courtesy.

    Any thoughts or suggestions, Luke? I’m all ears.

    Thanks again 🙂

    Plugin Author lukeseager

    (@lukeseager)

    Hi,

    Thanks for the updated information, i’ll give this a test my end to see if I can replicate it.

    Out of interest, how are your logout/login links created? Have you written some code or are you using a plugin? If you should share the code or plugin, that could help.

    Thread Starter houseminute

    (@houseminute)

    Hi Luke –

    Sorry for the delay in replying. I’m most appreciative of your help, but it took me a few days to get this info. Here’s what my web dev said:

    “The login/logout links are part of the functionality provided by PMP. Both log in and log out are added as options to the menu system.”

    PMP refers to Paid Memberships Pro (https://github.com/strangerstudios/paid-memberships-pro), which is what we use to create the paywall. Do you suppose that there’s an incompatibility there with Persistent Login?

    Their login page is just a site page with their login shortcode.

    I opened github and can see a bit of the info I think you want.

    Their login.php is this:

    <?php
    echo pmpro_shortcode_login(”);
    ?>

    I do not see any code for logout, so I’m not sure how that’s handled. Sorry, my understanding of code is poor, but if you provide any code that you’d like us to try, I can have my dev do it on our staging site and we can report back.

    Many thanks for your help 🙂

    Thread Starter houseminute

    (@houseminute)

    Ohhhh. I found the login code on github. Is it considered acceptable form to post it here? It’s public on github, but I don’t want to be rude by exposing anyone’s code. Please let me know, and I can upload it or get it to you another way. Thanks, sorry for the extra message.

    Plugin Author lukeseager

    (@lukeseager)

    Hi, thanks for the information. The code is public so there’s no issue sharing it.

    I’ve just installed PMP on my server with Persistent Login and tested out the Login/Logout menu links. I’m able to login and logout without any issues.

    I’ve had a quick look through their code, and they only seem to use the standard WordPress logout function to handle their logout process.

    In the same regard, Persistent Login only watches for a logout and deletes an option that remembers the user. Apart from that, it doesn’t have much else to do with the logout process.

    I think the issue might be coming from somewhere else. Are you able to test Persistent Login and PMP together without any other plugins activated, to see if the logout link works?

    If it does work, please reactivate the other plugins one at a time (testing the logout link each time). We should find the plugin that is causing the issue then.

    Plugin Author lukeseager

    (@lukeseager)

    Hi, as I haven’t heard back, I’ll close this thread. If you’re still having issues, feel free to open up a new thread.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.