日期:2014-05-18  浏览次数:20451 次

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