本文介绍了如何限制用户点击浏览后退和前言按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我正在使用asp.net使用c#代码。当我在测试应用程序时,我观察到我在下面提到的场景。



我登录应用程序,成功登录后我已重定向到主页。当我在主页上,我点击浏览器后退按钮。点击后退按钮,我已重定向到应用程序登录页面。当我在登录页面并点击浏览器froward按钮。点击Froward按钮,我直接重定向到主页,无需登录。



我试图限制用户。请给我任何相同的解决方案。



对于应用程序,我使用菜单扩展的主页面是除登录和注销外的内容页面。

在此先感谢



问候,

Chetan C

Hi,

i am using asp.net by using c# code. While i am testing application i observe scenario that i have mention below.

I am login the application, after successful login i had redirect to home page. while i am on home page and i had click on browser "back" button. On click on back button i had redirect to application login page. while i am on login page and click on browser "froward" button. On click on "Froward" button i had directly redirected to the home page without login.

I am try to restrict user. Please provide me any solution on the same.

For application i use Master page for Menu reaming are content pages except login and logout.
Thanks in advance

Regards,
Chetan C

推荐答案


这篇关于如何限制用户点击浏览后退和前言按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 14:57