fix cookie name when using cookie: true

fixes #34