update cookie demo