Fixed another regression with cookie authentication.