WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
Login widget - Click here to logout - does not work (10 posts)

  1. Marcus Tibesar
    Member
    Posted 2 years ago #

    Hello,

    After subscribers login to my site they are unable to logout using the Login widget "Click here to logout"

    Note: We configure all Subscribers users accounts so that the very top WordPress toolbar is not shown ("Show toolbar when viewing site" is unchecked)

    Thank you so much!

    Marcus
    [ Signature moderated. ]

    http://wordpress.org/extend/plugins/wp-members/

  2. Marcus Tibesar
    Member
    Posted 2 years ago #

    Hmm, that's weird.

    After waiting a few minutes the test Subscriber was able to logout using the "Click here to logout" in the sidebar Login widget.

    Why the delay?

    Thank you so much!

    Marcus

  3. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    There's nothing that I can think of that would cause a delay in the logout functioning other than possibly something that functions within the permalink process. Are you using a caching plugin?

    I see you've marked this resolved, so I assume everything is working as it should now?

  4. Marcus Tibesar
    Member
    Posted 2 years ago #

    Our hosting company WP Engine uses their own custom caching for all of the sites they host so,, I don't use a third party caching plugin anymore.

    Yes, the logging-out speed seems instantaneous now so the problem is resolved.

    Thank you for the followup and the great plugin Chad - it really works well!

    Marcus

  5. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the update. I am guessing it might have had something to do with the hosting cache relative to permlinks, but that's just a guess. Glad to know it is working well for you!

  6. Marcus Tibesar
    Member
    Posted 2 years ago #

    The problem has returned.

    I noticed that the problem returned when I checked (turned on):

    Block Pages by default

    After I turned on this setting I cleared all caches.

    Please advise.

    Thank you so much!

    Marcus Tibesar

  7. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    There's not much in the plugin that can go wrong with the logout so I'm not sure where you might be running into problems. Here are some things to check:

    The logout link should be http://yourdomain.com/?a=logout Are you running WP in a different directory than the site URL or some other non-default installation? If so, that's probably where we need to look. If not, maybe try manually accessing the logout with ?a=logout to see that we are actually getting to the plugin's logout function.

    Does the WP logout work correctly? Test this via the admin bar or via the admin panel. If so, it must be something in the configuration mentioned above because the plugin is using WP's logout process:

    wp_clearcookie();
    do_action( 'wp_logout' );
    nocache_headers();
  8. Marcus Tibesar
    Member
    Posted 2 years ago #

    When I click on the "Logout" link I briefly see the URL: http://tibesar.com/?a=logout

    WP is running in the root where WP Engine hosting company installed the WordPress software

    I did install that filter/hook php code that you provided me that changed the verbage from "Click here to logout" to just "logout"

    The WP admin bar logout works properly

    Any other suggestions?

  9. bblais
    Member
    Posted 1 year ago #

    Same here :

    Using 2 tabs in my web browser, one in the admin panel, and the other to check out the website.
    If I logout from my user link as if I do using the admin panel logout, the result is the same :
    I get logged out from the admin panel, which is exactly what we expect doing so, but the is_user_logged_in() seems to stay true as in the website tab, I stay logged in...

    This happens to me since WP-members has a locale translation (fr_CA). I had to uninstall it and reinstall it as some fields were not getting translated, and dropped the related db tables to be sure, but now, with a clean WP-members install, using french language, there's no way to logout form the user website.

    Help please :)

  10. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    I'm having a little trouble understanding your issue. The login/logout should not be affected by localization.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic