Compress objects and save to cookies.