change the way the cookie is sent to the emulator
remove the default cookie setting otherwise it will override the env variable