update cookie creation