简体   繁体   English

如何禁用注销后退按钮?

[英]How to disable Back button on Logout?

I am working on application with Iframes,on logging out of my application when i click browser back button it loades application home page without asking for login. 我正在使用Iframe开发应用程序,当我单击浏览器后退按钮退出我的应用程序时,它会加载应用程序主页而不要求登录。 so how can i load same page(login page) on back button.please help. 所以我该如何在返回按钮上加载同一页面(登录页面)。请帮助。

Thank You 谢谢

You can try: 你可以试试:

window.history.forward();

Note that this does not really prevent the user from accessing that page, it will only make it more difficult. 请注意,这实际上并不能阻止用户访问该页面,只会使其变得更加困难。 You should use session validation on the log out page for any form of security. 对于任何形式的安全性,您都应该在注销页面上使用会话验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM