Add some code about cookie.