c# 笔记cookie
2021-05-02 06:28
标签:code expires null col tostring exp value string ring c# 笔记cookie 标签:code expires null col tostring exp value string ring 原文地址:http://www.cnblogs.com/rockywood/p/7770759.html if (Request.Cookies["svpoint"] != null)
{
Request.Cookies["svpoint"].Value = lst[0].s_SvcID.ToString();
}
else
{
HttpCookie aCookie = new HttpCookie("svpoint");
aCookie.Value = lst[0].s_SvcID.ToString();
aCookie.Expires = DateTime.Now.AddDays(1);
Response.Cookies.Add(aCookie);
}