• Resolved kelsangchodor

    (@kelsangchodor)


    Hi,

    I wonder if you might be so kind to help me understand something?

    I have created two menu items – Member Login (displayed to everyone not logged i) and Member Logout (displayed to everyone logged in).

    The “Member Login” menu item is displayed when the user is logged out – Perfect. The “Member Logout” menu item is displayed when the user is logged in – Perfect. But when the user clicks on “Member Logout” – they are logged out and it still shows “Member Logout” this AFTER they log out. If I delete the history from the browser then refresh it then says “Member Login”. Is this a cache issue? How can I fix this? I used WP rocklet – I can’t find a way to fix this so might have to delete the plugin if I can’t understand a work around,

    Thanks you so much for any help,

    This is the link if it helps:

    https://meditationinsarasota.org/

    Chris.

    • This topic was modified 4 years, 7 months ago by kelsangchodor.
Viewing 1 replies (of 1 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @kelsangchodor – Your site is likely using browser caching that is storing the page long term. We also use WP rocket + CloudFlare and had to recently upgrade to the CloudFlare business plan to bypass the cache based on the wp_logged_in_* cookie which is unfortunate.

    If your not using CF, you will need to reach out to WP Rocket (like we did) and request they support regex in the Cookie Exclusion field as currently you have to name the cookie exactly and the WP login cookies use a random string of letters and numbers each time you log in.

    Hope that helps. Feel free to reach out: https://code-atlantic.com/contact-us/

Viewing 1 replies (of 1 total)
  • The topic ‘Member Logout Menu Still Displays Even When Logged Out’ is closed to new replies.