How Do I Articles
If you want to create a "log out" button for users, here is the quickest way.
Create a new menu of “External Link ” type in one of your menus.
Then, set its access level to "Registered" and give it any name you want like “Logout.”
In the “Link” text box type the following “index.php?option=com_user&task=logout&return=Lw”.
That’s it. You now have a "log out" button that only appears to registered users, and it is just one click.
But, you say, doesn't the Joomla "User Menu" come with a logout button?
Yes it does, but it requires you to confirm that you want to logout. This is a one click solution!