Beispiel #1
0
 public function logout($req, $res)
 {
     Session::forget('auth');
     Session::forget('user');
     return $res->withStatus(301)->withHeader('Location', $this->router->pathFor('login'));
 }