revert cookie back to BaseCookie