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 $data = ['antiCsrfToken' => $this->request->session()->get('anti_csrf_token')]; return new JsonContent($data); } }