Create a new cookie class.