USER Methods
User status
login(), logout(), admin(), groups(), status()Creating and deleting users
create(), update(), delete()User information
index(), details(), directory()User registration
evaluate(), register(), hash(), activate(), password()
logout()
There are several ways to logout a user. One is by calling this method. Another one is to add a logout parameter to the url as created by this logout() method.
null logout()
Return
Will logout current user
Logout User
$USER->logout()
RETURN: NULL