Dict.CN

防止网页后退--禁止缓存

 ASP.NET:
Response.Buffer=true;
Response.ExpiresAbsolute=DateTime.Now.AddSeconds(-1);
Response.Expires=0;
Response.CacheControl="no-cache";
 
ASP:
Response.Buffer = True    
Response.ExpiresAbsolute = Now() - 1    
Response.Expires = 0    
Response.CacheControl = "no-cache"
posted on 2007-08-16 14:29  standas  阅读(195)  评论(0编辑  收藏  举报