Sitecore Analytics Robots SessionTimeout causing premature session timeout

醉酒当歌 提交于 2019-12-11 11:13:37

问题


On one of our project we been experiencing random session timeout issues. With recent discovery I've notice that Sitecore Analytics.Robots.SessionTimeout maybe the thing that's causing it.

We notice that at random session timeout, the timeout value was set to 1min instead of our 120min.

After searching through all the config files we notice only one configuration has timeout set to 1min.

We think by increasing the analytics robots session timeout to 120min will fix our random timeout issue, but my question is, will this have any negative performance impact or security issue by allowing robot sessions to live for 120min instead of 1min?

Thanks you for your suggestions.


回答1:


This seems like a different problem to me... I don't think it's an issue that robots are set for 1 minute session. You say the problem is "random", but is it possible what is really going on is that some site visitors are being mis-identified as robots?

I don't think you'll see any performance impact by changing the robot timeout, but that would be treating the symptom rather than finding the real cause.




回答2:


I've log the issue with Sitecore and here's their response to the issue.

I don't think that the behaviour should be considered as a bug because Sitecore CMS was designed to be used with ASP.NET WebForms technology. While using web forms, the bot detection relies on the control in the of the page. It's natural that you can't use it in the ASP.NET MVC application, but there is an easy solution - put the following code inside the element:

<%
if (Context.Diagnostics.Tracing || Context.Diagnostics.Profiling)
{
  Response.Write("<!-- Visitor identification is disabled because debugging is active. -->");
}
else if (Tracker.IsActive && (Tracker.Visitor.VisitorClassification == 925))
{
  Response.Write("<link href=\"/layouts/System/VisitorIdentification.aspx\" rel=\"stylesheet\" type=\"text/css\" />");
}
%>


来源:https://stackoverflow.com/questions/11109919/sitecore-analytics-robots-sessiontimeout-causing-premature-session-timeout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!