Here is what I'm doing:
wp_logout();
var_dump(is_user_logged_in());
var_dump returns:
bool(true)
Why is wp_logout() not logging me out?
|
Here is what I'm doing:
var_dump returns:
Why is wp_logout() not logging me out? |
||||
|
|
|
wp_logout() calls clear_auth_cookie(), which expires all authorization cookies set. It doesn't change the value of the global $current_user variable. So technically you're still logged in for the duration of the script. If you're using |
|||||||||
|