$user->logout()

Logs out the user and kills the session.

  • return (nothing)

Example

<?php

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

go('login');

?>

Is something missing or incorrect? Edit this page on Github…