如何从浏览器按钮返回/转发时过期网页 [英] How to expire webpage when back/forward from browser button
本文介绍了如何从浏览器按钮返回/转发时过期网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为我的一个网站项目实现以下功能;
- 我不想让用户在页面之间导航。页面必须过期。像onlinesbi或其他安全站点。
- 如果用户注销>返回>刷新,然后再次登录(当前)。我必须禁用此类登录。
我已经通过元标记设置了no-cache
请让我知道如何实现上述功能。
解决方案
http://www.mnot.net/cache_docs/
此HTTP标头:
缓存控制:public,no-cache
您可以在HTTP头中添加关于浏览器如何缓存页面的说明。
<>欢呼。
I want to implement following features to my one of the website project;
- I Don't want to let user navigate between pages. Page must be expired. Like onlinesbi or some other secure site.
- If user log out > go back > refresh then again he logs in (currently). I have to disable such login.
I am already setting no-cache through meta tag
Please let me know how to implement above features.
解决方案
http://www.mnot.net/cache_docs/
This HTTP header:
Cache-Control: public, no-cache
Take a look at that document!
You can place HTTP headers with instructions about how the browser should cache the page.
cheers.
这篇关于如何从浏览器按钮返回/转发时过期网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文