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