注销后如何防止返回浏览器按钮 [英] how to prevent back browser button after logout

查看:85
本文介绍了注销后如何防止返回浏览器按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在用户退出后停止后退按钮?退出按钮位于MASTER PAGE



我有几页,最后一页是最后一页退出后,当我点击后退按钮时显示上一页。

我如何避免这种情况。请帮助我 代码

代码需要 触发器仅在LOGOUT之后。 user 必须能够 go 返回n参见上一页如果 使任何更改 ' 已进入。

解决方案

请查看以下链接了解更多信息。



点击退出按钮后禁用浏览器后退按钮功能 [ ^ ]



退出后的浏览器后退按钮问题 [ ^ ]


1。首先,对所有限制页面执行此操作:

check-session-variable-and-redirect-to-login-page-before-page-load [ ^ ]

2 。当用户退出时: Kill + Session + with + Logout [< a href =http://forums.asp.net/t/1218178.aspx?Kill+Session+with+Logouttarget =_ blanktitle =New Window> ^ ]

了解详情:在ASP.NET中探索会话 [ ^ ]


看到这个:

注销后浏览器后退按钮问题 [ ^ ]



及更多< a href =http://www.codeproject.com/search.aspx?q=browser+back+button+issue+after+logout&doctypeid=4%3b5>这里 [ ^

How can i stop the back button after user has logout ?The logout button is in MASTER PAGE

I have few pages, the last page is the final page and after log out when i click back button its showing the previous page.

How do i avoid this.Pls help me with the code

 Code needs to trigger only after LOGOUT .The user must be able to go back n see previous page if he has to make any changes while he's loged in.

解决方案

Please check below links for more info.

Disable Browser Back Button functionality after click on Logout Button[^]

Browser Back Button Issue After Logout[^]


1. First, do this for all your restricted pages:
check-session-variable-and-redirect-to-login-page-before-page-load[^]
2. When a user logs out: Kill+Session+with+Logout[^]
Read more: Exploring Session in ASP.NET[^]


see this:
Browser back button issue after logout[^]

and more here[^]


这篇关于注销后如何防止返回浏览器按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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