回答
是你的意思?
public void Init(HttpApplication context)
{
context.PreRequestHandlerExecute += new EventHandler(context_PreRequestHandlerExecute);
}
void context_PreRequestHandlerExecute(object sender, EventArgs e)
{
HttpApplication app = (HttpApplication)sender;
HttpContext context = app.Context;
HttpResponse response = context.Response;
if (IsLoginPage(context))
{
// ...
}
else if (IsLogoutPage(context))
{
// ...
}
}
謝謝Scott。我會測試這個代碼,我會更新這個thead。 – 2012-01-05 20:14:06
你好斯科特,我需要知道IsLoginPage和IsLogoutPage。在某些方面,我可以通過IsNewSession知道登錄過程,但是,如果我使用表單身份驗證,則沒有會話。 – 2012-01-05 20:25:27
對不起,我不知道你想要什麼..如果你想獲得在線用戶,可以使用global.asa,並使用session_start和session_end – shenhengbin 2012-01-06 00:46:04
- 1. 檢測在Bash中的圖形登錄
- 2. HttpModule中的瀏覽器檢測
- 3. Kentor HTTPModule- ADFS登錄SAMLResponse錯誤
- 4. 使用SENS檢測登錄
- 5. 檢測蛋糕中的登錄失敗
- 6. 檢測iOS遊戲中心登錄
- 7. 檢查HTTPModule中的匿名
- 8. Facebook登錄 - 檢測用戶登錄時沒有PHP-SDK
- 9. 在AJAX請求中檢測DNN中的登錄超時
- 10. 如何檢測Windows登錄事件?
- 11. Android的Facebook的檢測首次登錄
- 12. 檢測網站登錄失敗objective-c?
- 13. 檢測用戶是否已登錄
- 14. Rails設計不檢測用戶登錄
- 15. 如何檢測失敗的Windows登錄
- 16. 檢測用戶是否登錄到Facebook
- 17. 檢測用戶通過Google Analytics登錄
- 18. GitHub如何檢測登錄/註銷?
- 19. 檢測註銷並登錄PowerShell
- 20. 檢測paypal訂閱取消登錄asp.net
- 21. Minecraft服務器包裝檢測登錄
- 22. 檢測智能卡登錄或NPLogonNotify()Windows7
- 23. 谷歌登錄按鈕按檢測ios
- 24. 檢測用戶從Windows服務登錄
- 25. PHP登錄全名未檢測到
- 26. 如何在我的Firefox擴展中檢測成功登錄?
- 27. 如何使用JavaScript在網頁中檢測登錄表單?
- 28. 在c#中檢測EventClass審覈登錄/註銷
- 29. 在vBScript中檢測Windows CE(登錄腳本)
- 30. .NET在Windows 10中檢測登錄事件
您的問題太模糊,無法提供有意義的答案。請添加詳細信息,示例代碼,您嘗試過的內容等。 – RickNZ 2012-01-05 06:43:35