回答
是你的意思?
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. 使用SENS检测登录
- 4. 检测iOS游戏中心登录
- 5. 检测蛋糕中的登录失败
- 6. GitHub如何检测登录/注销?
- 7. 如何检测Windows登录事件?
- 8. 检测注销并登录PowerShell
- 9. 检测用户是否已登录
- 10. 检测用户从Windows服务登录
- 11. PHP登录全名未检测到
- 12. Rails设计不检测用户登录
- 13. 检测paypal订阅取消登录asp.net
- 14. 谷歌登录按钮按检测ios
- 15. 检测用户是否登录到Facebook
- 16. 如何在我的Firefox扩展中检测成功登录?
- 17. 如何使用JavaScript在网页中检测登录表单?
- 18. 在SQL Server 2000中检测上次登录日期/时间
- 19. 如何检测在Linux中通过GUI登录的用户
- 20. 在vBScript中检测Windows CE(登录脚本)
- 21. 在c#中检测EventClass审核登录/注销
- 22. ASP.NET HttpModule:检测会话中的第一个请求
- 23. 错误登录在检索
- 24. 登录测试 - Laravel
- 25. 登录后在ActionFilter中检查User.Identity.IsAuthenticated
- 26. 如何检测浏览器何时将登录密码输入网络登录
- 27. 单元测试HttpModule中的事件
- 28. 与MySQL登录系统检测用户ID在VB.net
- 29. 在django登录后检测浏览器类型
- 30. C#:在检测员工登录密码时出错
您的问题太模糊,无法提供有意义的答案。请添加详细信息,示例代码,您尝试过的内容等。 – RickNZ 2012-01-05 06:43:35