The system is now smart enough to hide the link to user/login if you're logged in (which is good, because you can still go there, but you get a stupid access denied message) but the logical thing to do would be to support an option to change it to "log out" instead of hiding it.

Comments

rcross’s picture

You can add an equivalent "logout" menu item which behaves as expected (hidden when logged out, shown when logged in)

verta’s picture

Category: support » feature

OK, I guess can phrase this a feature request ...

This is really the kind of thing that I expect to find in core in a CMS, not have to manually make menu items or install community modules to implement.

rwohleb’s picture

Assigned: Unassigned » rwohleb
Status: Active » Closed (works as designed)

Drupal is built to be flexible in this regard. It doesn't force you to have these links. In this case, there should already be a 'logout' link in the 'Navigation' menu that you can move to another menu if that suits you better.

I'm marking this as 'by design' since Drupal 6 already functions as expected, and this isn't the place for Drupal core feature requests anyways :)

trentharlem’s picture

To back up rwohleb, Drupal 6's built-in menu structure does function as expected in this regard.

For instance, create the links "log in" and "log out" with the respective paths "user/login" and "logout" and they will "toggle" themselves.

Indecently, I was having an issue with the logout not functioning properly due to page caching. I resolved it by implementing the "Boost" module...
http://drupal.org/project/boost