update cookie setting