protected function saveAfterLogin(Request $httpRequest)
    {
        $referer = $httpRequest->headers->get("referer", null, true);
        $afterLogin = Utils::getRefererQueryParam($referer, "afterLogin");
        if ($afterLogin && Utils::isValidPageId($afterLogin)) {
            $this->session->set("afterLogin", $afterLogin);
        }
    }