fixes #5957 apply disableCookies first