Nevermind. I was corrupting the cookie myself!