写入时:
HttpCookie cookie = new HttpCookie("cookie1");
cookie.Value = Server.UrlEncode(strValue);
Response.Cookies.Add(cookie);

读出时:
string result = Server.UrlDecode(Request.Cookies["cookie1"].Value)

相关文章: