时间:2021-07-01 10:21:17 帮助过:31人阅读
创建
代码如下:
HttpCookie cookies = new HttpCookie("validate");
cookies["validate"] = validateNum;
Response.AppendCookie(cookies);
获取
代码如下:
if (context.Request.Cookies["validate"] != null)
{
validate = context.Request.Cookies["validate"].Value.ToString();
}
测试可用!