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

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

相关文章:

  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-12-03
  • 2021-08-09
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2021-07-06
相关资源
相似解决方案