update cookie ref