Support Joomla!

references:joomla.framework:application:japplication-logout

Table of Contents

logout

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method logout Reference 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.

Syntax

void logout ()

Examples

Example

if ($mainframe->logout()) {
    echo "User logged out.";
} else {
    echo "User could not be logged out.";
}

might produce

Result

User logged out.

 
references/joomla.framework/application/japplication-logout.txt (590 views) · Last modified: 2007/08/15 14:49