Adding cookie authentication for browser sessions.