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' => \Container::$request->session()->get('anti_csrf_token')]); } }