Fix cookieSession to work with FQDN