request = $request; } public function getIndex(): IRedirect { return new Redirect(\Container::$routeCollection->getRoute('maps')->generateLink(), IRedirect::TEMPORARY); } public function startSession(): IContent { // session starts with the request, this method just sends valid data to the client return new JsonContent(['antiCsrfToken' => $this->request->session()->get('anti_csrf_token')]); } }