Sitecore:会话开始管道

时间:2016-07-11 13:47:24

标签: sitecore

我需要检测新会话何时启动,我无法找到它的管道或处理器。具有讽刺意味的是,我找到了sessionEnd管道!

我似乎能够使其工作的唯一方法是使用Global.aspx挂钩会话启动事件。

2 个答案:

答案 0 :(得分:1)

您可以使用以下代码将自己的处理器添加到httpRequestBegin管道:

if (Session["exist"] == null)
{
    // your code that should be executed on session start.

    Session["exist"] = true;
}

答案 1 :(得分:0)

您可能会找到您要找的内容here

根据您的需求,startTracking管道可能就是您想要的。