====== logout ======
{#JAPI Joomla.Framework Application JApplication::logout #}
Logout authentication method. This method passes the current user information to the onLogoutUser event and reverts the current session record back to 'anonymous' parameters.
===== Syntax =====
void logout ()
===== Examples =====
if ($mainframe->logout()) {
echo "User logged out.";
} else {
echo "User could not be logged out.";
}
might produce
User logged out.
----
~~DISCUSSION~~