is_user_logged_in() returns true even after wp_logout() (2 posts)

  1. andrej1c
    Posted 4 years ago #

    var_dump(is_user_logged_in()); // show true
  2. andrej1c
    Posted 4 years ago #

    I should have asked a question rather than just putting in code. I have a single sign-on solution that lives on a different server and after I run the wp_logout() I redirect to that site and log the user out there as well. However, when I redirect the user back to the WordPress site it shows them logged in.

    Am I missing something? Please help.

Topic Closed

This topic has been closed to new replies.

About this Topic