$user->logout()
Logs out the user and kills the session.
-
return (nothing)
Example
<?php
if($user = $site->user()) {
$user->logout();
}
go('login');
?>
Logs out the user and kills the session.
<?php
if($user = $site->user()) {
$user->logout();
}
go('login');
?>