I'm a Drupal newbee and I'm having trouble when pressing the logout link. The login block immediately shows up when I'm in an authenticated page. I want to logout by closing the session, changing the user ID to NULL and goto my sites page as if I were a new user to the site.
It seems simple enough, but I don't think it can be done with the way the user module's user_logout function is written.
If the page (home page) is anonymous, their should be no need for a user login to goto it after
the session is cloded and the $user = drupal_anonymous_user();
Being new to Drupal, I don't understand how user_logout() works and how it calls for a login.

Comments

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.