$.cookie("testcookie", JSON.stringify(data), { path : '/', expires : 0 });
//php代碼php
setcookie("testcookie",time()-3600,);