My logout link is not logging me out. May be I am missing something.

I tried the below links which is generated by wp_logout_url(site_url()). But still I am logged in.

What can be wrong?

More info :

Logout link is in custom menu. I check whether if the user is logged out or logged in by using the function is_user_logged_in() from within the function.php file.

  • Not seeing any problem here, might just be some configuration hiccup, like cookies don't get deleted, on your dev environment. – Nicolai Jun 8 '14 at 11:39
  • post your code for adding the link to the menu. – Bainternet Jun 8 '14 at 12:56
  • I noticed, my admin dashboad is signed out. of cource it mean sign out is working. Now what happen is is_user_logged_in() is returning true even after the user is logged out. – BlueBird Jun 9 '14 at 10:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.