I use cookie authentication in an app, and when running it in the dev environment, the cookie persists fine, but when I use it in production, it would request me to log in a