更新时间:2023-08-31 18:05:10
如果您使用的是asp.net成员资格提供程序,则需要调用此函数:
Hi,
If you are using asp.net membership provider then you need to call this:
FormsAuthentication.Signout();
FormsAuthentication.RedirectToLoginPage();
如果您愿意,也可以使用
If you want you can destroy session too using
Session.Abandon();
破坏会话.不允许用户进入个人页面,将history.forward()添加到页面的body onload事件中
If you want to keep the user on the same page and not let the user go to personal page, add history.forward() to body onload event to the page
<body onload="history.forward()">
在这里,请查看此提示/技巧
注销后浏览器后退按钮问题 [
Here you go, check this Tip/Trick
Browser back button issue after logout[^]