www说
写出CookieResponse.Cookies["userName"].Value = "test";Response.Cookies["userName"].Expires = DateTime.Now.AddMonths(1);读取验证CookieString userName = String.Empty;if(Request.Cookies["userName"]!=null)userName = Request.Cookies["userName"].Value;