set the cookie on the pre-save filter