How to show logout button if user is logged in Drupal?

Tausif Khan picture Tausif Khan · Feb 2, 2011 · Viewed 20.2k times · Source

I need to show a logout button on my site if a user is logged in and a login button if a user is not logged in. How can I do that?

Answer

dogbane picture dogbane · Feb 2, 2011

Take a look at this post on the drupal forum: Dynamic login/logout link in Primary Links