【C#】【Cookie】Cookie设置与读取
依赖using System.Web;设置Cookie1.新建Cookie对象HttpCookie cookie = new HttpCookie("UserInfo");“UserInfo”是这个Cookie的名称2.设置Cookie有效时间cookie.Expires = DateTime.Now.AddDays(15);3.设置Cookie属性与值cookie.V...