Issue where cookie_value is generated twice

Discovered that I wasn't using the cookie_value I was passing.