Attempt to fix cookie management

Cookies were not working on Safari.