Example #1
0
 /**
  * uses Kingboart_Auth to destroy the session, therefor logging the user out.
  * @param $params
  */
 public function logout(array $params)
 {
     \Kingboard\Lib\Auth\Auth::logout();
     session_destroy();
     $this->redirect("/");
 }
Example #2
0
 public function logout($request)
 {
     \Kingboard\Lib\Auth\Auth::logout();
     $this->redirect("/");
 }