update cookie replace