当前位置: 代码迷 >> ASP.NET >> cookies 怎么存取主键
  详细解决方案

cookies 怎么存取主键

热度:10516   发布时间:2013-02-25 00:00:00.0
cookies 如何存取主键
cookies 如何存取主键?
Csharp代码

------解决方案--------------------------------------------------------
HttpCookie x = new HttpCookie("key","value");
Response.Cookies.Add(x);


Request.Cookies["key"].Value
------解决方案--------------------------------------------------------
从数据库读取到UserId

HttpCookie x = new HttpCookie("id",UserId);
------解决方案--------------------------------------------------------
探讨
HttpCookie x = new HttpCookie("key","value");
Response.Cookies.Add(x);


Request.Cookies["key"].Value
  相关解决方案