Title: Logout not stable
Last modified: January 21, 2019

---

# Logout not stable

 *  Resolved [tdechangy](https://wordpress.org/support/users/tdechangy/)
 * (@tdechangy)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/logout-not-stable/)
 * 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/](https://lemaitreantiques.com/boutique/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/logout-not-stable/#post-11116011)
 * [@tdechangy](https://wordpress.org/support/users/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](https://wordpress.org/support/users/tdechangy/)
 * (@tdechangy)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/logout-not-stable/#post-11116311)
 * 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](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/logout-not-stable/#post-11118092)
 * [@tdechangy](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/user-menus/assets/icon-256x256.png?rev=1507838)
 * [User Menus - Nav Menu Visibility](https://wordpress.org/plugins/user-menus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-menus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-menus/)
 * [Active Topics](https://wordpress.org/support/plugin/user-menus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-menus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-menus/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/logout-not-stable/#post-11118092)
 * Status: resolved