• We are using the Login/Logout button in the nav menu on a MemberPress site. It works great in all circumstances but one. When you click a link to protected content, (basically any other link in the menu) you are prompted to login. Logging in brings you to the content you clicked on, and the Log In menu changes to say Log Out. Perfect.

    But if you use the Login menu to log in, the menu still says ‘Login’ – even after you have logged in. Even if you reload the page. When you visit another page, it corrects itself to say Log Out.

    How can I make it change to say Log Out immediately after a user has logged in?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cartpauj

    (@cartpauj)

    Sounds like you have browser caching enabled either at the host level, or within a caching plugin. If you visit a page logged out, and the browser caches it, then when you visit that page again it will show the cached (logged out) version of that page. Have your host check your page for “expires” HTTP headers to indicate browser caching.

    Thread Starter billypea

    (@billypea)

    Thank you for such a fast reply. I will follow your advice 🙂

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

The topic ‘Login sticks, menu does not change to say Log Out’ is closed to new replies.