update cookie demo

I update a demo of cookie.