本文介绍了后退按钮上的asp.net会话不为null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从网页注销,但是当我通过后退"按钮返回时,我可以进入所有页面....有人给出一些想法

i logout from web page but when i am going back through back button i can go on all pages....some one give some idea

推荐答案

protected void logoutBtn_click(___,___)
{
 FormsAuthentication.SignOut();
 // and set all session null here...
}


希望对您有帮助.
并且,如果有帮助,别忘了将其标记为答案. :)


Hope this will help you.
And don''t forget to mark as answer if it helps. :)


这篇关于后退按钮上的asp.net会话不为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 07:32