c# 笔记cookie

2021-05-02 06:28

阅读:331

标签:code   expires   null   col   tostring   exp   value   string   ring   

         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);
                }

 

c# 笔记cookie

标签:code   expires   null   col   tostring   exp   value   string   ring   

原文地址:http://www.cnblogs.com/rockywood/p/7770759.html


评论


亲,登录后才可以留言!