单击“浏览器”后退按钮时如何设置应用程序注销? [英] How to set the application logout when we click on Browser back button?

查看:83
本文介绍了单击“浏览器”后退按钮时如何设置应用程序注销?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们点击浏览器后退按钮时如何设置应用程序注销?



因为我正在使用母版页面,它有几个子页面,如page1,page2。 ...



例如:我有一个Login.aspx,我输入我的用户名和密码,然后转到页面1.aspx并从我正在转移到名为page 2.aspx的新页面,如果我点击浏览器后退按钮,则会从第2页开始,然后会话必须到期并移动到Login.aspx。



完全像银行网站。





尽快回复。

全部谢谢..

How to set the application logout when we click on Browser back button?

As I'm using Master pages whci has several child pages like page1,page2....

for example: I have one Login.aspx where i'm entering my "username and password and Move to the "page 1.aspx" and from there I'm moving to new page called "page 2.aspx" and from page 2 if i click on the Browser back button then the session has to expire and it moves to the Login.aspx.

Its totally like Banking website.


Reply as soon as you can.
Thanks All..

推荐答案

参考



http://forums.asp.net/t/1869597.aspx?Logout+User+IF +他+按+浏览器+返回+按钮 [ ^ ]



http://aspnet-with-c-sharp.blogspot.in/2010/12/coding-of-logout-button-in- aspnet-c.html [ ^ ]


这篇关于单击“浏览器”后退按钮时如何设置应用程序注销?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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