$user->logout()

Logs out the user and kills the session.

  • return (nothing)

Example

<?php

if($user = $site->user()) {
  $user->logout();
}

go('login');

?>