• Resolved restorm

    (@restorm)


    We’re using WP Optimize’s caching function on our site, but when logged-in subscribers click on “logout”, nothing happens. We have removed the login/logout functions and the reset password page from caching, but we still have login issues. Is there something else we need to do (like switch to WP Rocket)?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    Sorry for the delay.
    Do you have Serve cached pages to logged in users enabled in the cache settings?
    If you have user specific content, it should be disabled.

    when logged-in subscribers click on “logout”, nothing happens

    What is the URL of the “logout” link, and if nothing happens, is there a javascript error in the browser console?

    Marc.

    Thread Starter restorm

    (@restorm)

    Thanks, Marc.

    In reply to your question, “Do you have Serve cached pages to logged in users enabled in the cache settings?”, the answer is: No, we didn’t activate it. It’s disabled.

    In reply to your question, “What is the URL of the “logout” link, and if nothing happens, is there a javascript error in the browser console?” the answer is: The URL is -> https://revitalization.org/logout/?ihcdologout=true (there is “ihcdologout=true” as query string because we are using Ultimate Membership Pro plugin). There was no javascript error in the console.

    Any query string will bypass caching, so the issue is likely to be somewhere else,
    specially if logged-in users are not served cached pages.

    Is there any PHP error being logged when attempting to log out?

    Thread Starter restorm

    (@restorm)

    There are no PHP logs associated with the logout function, Marc.

    Thread Starter restorm

    (@restorm)

    The problem is related to cookies in some way. If I clear cache and cookies, I’m able to login and logout OK, but only once. As soon as the cookies are present, the logout function stops working.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Caching has messed-up our login/logout function’ is closed to new replies.