0
我使用asp.net MVC。 我需要知道用戶何時註銷,以便寫入數據庫如何在用戶身份驗證中引發事件結束於asp.net MVC
So-是否有一個authentication_end事件,比如global.asax文件中的事件session_end?
謝謝!
我使用asp.net MVC。 我需要知道用戶何時註銷,以便寫入數據庫如何在用戶身份驗證中引發事件結束於asp.net MVC
So-是否有一個authentication_end事件,比如global.asax文件中的事件session_end?
謝謝!
您可以使用Cookie進行會話管理。 FormsAuthentication對於 和global.asax 使用以下事件。 public void FormsAuthentication_OnAuthenticate(object sender,FormsAuthenticationEventArgs args)
你對認證有什麼用處? –