Fixed api key cookie clearing