摘要: 一、写入: HttpCookie cook = new HttpCookie("abcname"); cook.Expires = DateTime.Now.AddYears(1);//设定过期时间 cook["username"] = user.Uname; Response.Cookies.Add(cook);二、读取: HttpCookie cook = Request.Cookies["abcname"]; string name = string.Em... 阅读全文
posted @ 2012-12-13 11:28 lhfly 阅读(188) 评论(0) 推荐(0) 编辑