cookieName can be set in the template