if (cookieAuthKey != null) {
Cookie authCookie = new Cookie(cookieAuthConfig.getCookieName(), cookieAuthKey);
authCookie.setPath(StringUtils.isNotEmpty(request.getContextPath()) ? request.getContextPath() : "/");
authCookie.setMaxAge(0); // means we want it deleted now !
response.addCookie(authCookie);
curUser.removeProperty(cookieAuthConfig.getUserPropertyName());
}
}
protected String resolveLanguage(HttpServletRequest request, final JCRSiteNode site)
throws JahiaException {