Make the cookie class serializable