Why aren't you using the cookie class you created?