自帶緩存:System.Web.Caching.Cachehtml
轉載:http://www.cnblogs.com/kissdodog/archive/2013/05/07/3064895.html緩存
http://wenku.baidu.com/link?url=rvkGe8yeNsk9J_D0OriX--_S0jYRrezbiP2e5aZ_XiIo5B5WhHZeOOSNGDwXNReHW8IenNovrOGnVgXZjSUCQH1AmjT_mIIehJw2izGub9ecookie
設置以及獲取cookieurl
HttpCookie cookUserName =new HttpCookie("LogUserName", baseUserName); cookUserName.Expires = DateTime.Now.AddDays(1); Response.Cookies.Add(cookUserName);
HttpContext.Current.Request.Cookies.Get("LogCityName").Value