当前位置:编程学习 > C#/ASP.NET >>

.net如何实现IE后退让网页过期

.net如何实现IE后退时让网页过期!

谢谢! --------------------编程问答-------------------- 利用“post”方法,并在头部加上过期的代码即可。 --------------------编程问答-------------------- 参考
http://wisdom520.bokee.com/5532877.html
http://kevinwanglei.blog.sohu.com/102506012.html
http://hi.baidu.com/bit5566/blog/item/8ac9bd55f12cf2cdb645ae5c.html
http://www.cnblogs.com/Anders/archive/2004/10/01/45889.html --------------------编程问答--------------------
引用 2 楼 kongwei521 的回复:
参考
http://wisdom520.bokee.com/5532877.html
http://kevinwanglei.blog.sohu.com/102506012.html
http://hi.baidu.com/bit5566/blog/item/8ac9bd55f12cf2cdb645ae5c.html
http://www.cnblogs.com/Anders/archiv……

up --------------------编程问答-------------------- 禁止后退
<META content=no-cache> 
<META http-equiv=Cache-Control content=no-cache> 
<META http-equiv=Expires content=0> 

Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache); 
Response.Expires = 0; 
Response.Buffer = true; 
Response.ExpiresAbsolute = DateTime.Now.AddSeconds(-1); 
Response.AddHeader("pragma", "no-cache"); 
Response.CacheControl = "no-cache"; 
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,