| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JApplication |
logout |
logout() |
Never | Work in Progress |
Logout authentication method. This method passes the current user information to the onLogoutUser event and reverts the current session record back to ‘anonymous’ parameters.
void logout ()
Example
if ($mainframe->logout()) { echo "User logged out."; } else { echo "User could not be logged out."; }
might produce
Result
User logged out.