fix cookie mistake by saving cookie properties rather than the cookie object