add cookie funtion
update readme: add cookie