cache values in the cookie