Bugfix: I was not setting the cookie at all

That was an amateur oversight, that's what you get for coding on 2AM Sat.