防止用户注销后浏览器的后退按钮显示安全数据的最简单方法? [英] easiest way to prevent the back button of your browser from showing secure data after a user logs out?

查看:24
本文介绍了防止用户注销后浏览器的后退按钮显示安全数据的最简单方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在具有登录和安全数据的普通网络应用程序中,一旦用户退出,有什么简单的方法可以保护数据并防止使用浏览器的后退按钮看到它?

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

这篇关于防止用户注销后浏览器的后退按钮显示安全数据的最简单方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆