如何清除会议上登出 [英] How to clear out session on log out
问题描述
我将用户重定向到登录页面,当用户点击退出,但是我不认为这会清除任何应用程序或会话,因为当用户重新登录所有的数据依然存在。
目前的登录页面有一个登录控制和后面的页面上的code仅连接了登录验证。
有人可以直接我一个很好的教程或文章关于进出ASP.NET网站处理日志?
Session.Abandon()
<一个href="http://msdn.microsoft.com/en-us/library/ms524310.aspx">http://msdn.microsoft.com/en-us/library/ms524310.aspx
下面是 HttpSessionState
对象上更详细一点:
<一个href="http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate_members.aspx">http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate_members.aspx
I redirect the user to the login page when user click log out however I don't think it clears any application or session because all the data persisted when the user logs back in.
Currently the login page has a login control and the code behind on the page is only wired up the login Authenticate.
Can someone direct me to a good tutorial or article about handling log in and out of ASP.NET web sites?
Session.Abandon()
http://msdn.microsoft.com/en-us/library/ms524310.aspx
Here is a little more detail on the HttpSessionState
object:
http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate_members.aspx
这篇关于如何清除会议上登出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!