赋值的时候
HttpCookie cookie=new HttpCookie("mycookie");
cookie.Values.Add("name","zhuye");
cookie.Values.Add("age","20");
Response.AppendCookie(cookie);
读取的时候
HttpCookie cookie=Request.Cookies["mycookie"];
string name=cookie.Values["name"];
string age=cookie.Values["age"];
浙公网安备 33010602011771号