Session清除掉,点击浏览器的后退键还会回到上个页面,需要在pageload里面加:

 

Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.Cache.SetNoStore();

用来禁止缓存。

还有段代码参考:

Response.Buffer=true;   
Response.ExpiresAbsolute=System.DateTime.Now.AddSeconds(-1);   
Response.Expires=0;   
Response.CacheControl="no-cache";

 

还可以用js来处理,通过时间的对比

相关文章:

  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2021-06-08
猜你喜欢
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案