如何清除会议上登出会议上

2023-09-03 11:51:02 作者:你真逗i

我将用户重定向到登录页面,当用户点击退出,但是我不认为这会清除任何应用程序或会话,因为当用户重新登录所有的数据依然存在。

目前的登录页面有一个登录控制和后面的页面上的code仅连接了登录验证。

有人可以直接我一个很好的教程或文章关于进出ASP.NET网站处理日志?

解决方案

  Session.Abandon()
 

http://msdn.microsoft.com/en-us/library/ms524310.aspx

钱没了 人没了 鸽子也没了 呼和浩特一信鸽大赛组织者携巨额奖金玩失踪

下面是 HttpSessionState 对象上更详细一点:

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