• Resolved tdechangy

    (@tdechangy)


    Hi,
    First, thanks for the social avatar update ??

    A strange issue I encounter since I use this plugin is that the logout is performing strangely. One nice thing I highly appreciate is that it holds the person on the same page or custom url!
    Sadly when signing out I often see a reload of the page where I’m still logged in, but if I refresh the page, then it shows me as logged out. But sometimes it shows the -useless- WP alert page to confirm the logout. In that cas I am redirected logged out as intended.
    Once in a while it works as intended, just logging me out in a single reload.

    I can’t say what’s the issue origin nor how to solve it. for sure i would appreciate not displaying the default WP -ugly & useless- logout confirmation page.
    Optionally it would be wonderful to make the process ajaxed, avoiding any page reload.

    You can have a look if you need @ https://lemaitreantiques.com/boutique/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @tdechangy Highly indicative you are using page caching for logged in users. Either on the server level or with a plugin like WP Rocket or W3 Tocal Cache etc.

    I say this because the logout links are WP core links, not ours. Same for login links ;).

    Not much we can do to make wp core logout work differently.

    And AJAX won’t solve it if its caching issue, I know because my Popup Maker plugin has a force logout extension that this can occur with as well. Its unrelated to the plugin and more related to server/caching generally a that is the only possible cause you see content that can’t possibly be live.

    Thread Starter tdechangy

    (@tdechangy)

    That’s quite strange since I had the problem even without caching installed.
    But since you say that you’re already using a core feature I don’t know what to think now.
    I use the “actual page” redirect after logout having this issue. Using the home page redirect solves it at least and is a not too bad solution either.

    I’ll maybe make later tests without any caching, but that won’t probably lead to a solution, especially with server caching if related.

    If you think of a solution to bypass that caching issue it would be awesome.

    THX.

    Plugin Author Daniel Iser

    (@danieliser)

    @tdechangy Sorry I don’t have a better answer, but to give you context this is how the link for those menu items is generated.

    $item->url = $item->object == 'logout' ? wp_logout_url( $redirect ) : wp_login_url( $redirect );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Logout not stable’ is closed to new replies.