IsLoggedIn()) { $this->response = new ApiJsonResponse(ServerStatus::BAD_REQUEST); $this->response->setParameter('success', false); $this->response->setMessage('No session to delete!'); return; } $session->Destroy(); $this->response = new ApiJsonResponse(); $this->response->setParameter('success', true); } }