/** * @param ServerRequestInterface $request * @return ResponseInterface */ public function logout(ServerRequestInterface $request) { Session::set('isLogin', false); Session::set('username', null); return Response::back($request); }