我需要检测新会话何时启动,我无法找到它的管道或处理器。具有讽刺意味的是,我找到了sessionEnd管道!
我似乎能够使其工作的唯一方法是使用Global.aspx挂钩会话启动事件。
答案 0 :(得分:1)
您可以使用以下代码将自己的处理器添加到httpRequestBegin
管道:
if (Session["exist"] == null)
{
// your code that should be executed on session start.
Session["exist"] = true;
}
答案 1 :(得分:0)
您可能会找到您要找的内容here
根据您的需求,startTracking管道可能就是您想要的。