创建
HttpCookie cookies = new HttpCookie("validate");
cookies["validate"] = validateNum;
Response.AppendCookie(cookies);
获取
if (context.Request.Cookies["validate"] != null)
{
validate = context.Request.Cookies["validate"].Value.ToString();
}
测试可用!