以prevent最简单的方法浏览器无法显示在用户注销后安全数据后退按钮? [英] easiest way to prevent the back button of your browser from showing secure data after a user logs out?
本文介绍了以prevent最简单的方法浏览器无法显示在用户注销后安全数据后退按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在一个正常的Web应用程序瓦特/登录和安全的数据,什么是一个简单的方法来保护数据和prevent它使用浏览器的后退按钮被看到,一旦用户登录了呢?
In a normal web app w/ login and secure data, what is an easy way to secure that data and prevent it from being seen by using the browser's back button, once a user logs out?
推荐答案
您想设置缓存控制和到期日头(设置在过去的日期),例如
You want to set the cache-control and expiration date headers (setting a date in the past), e.g.
Cache-Control: no-cache
Expires: Fri, 31 Dec 1998 12:00:00 GMT
这篇关于以prevent最简单的方法浏览器无法显示在用户注销后安全数据后退按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文