Sitecore 7.5 MVC and HttpContext.Session.Timeout set to 1 min

后端 未结 3 1452
情话喂你
情话喂你 2021-01-03 02:09

I have the session timeout set to 20min but when I try to access this value from action I\'m getting 1min instead.

Web.Config setti

3条回答
  •  余生分开走
    2021-01-03 02:37

    The problem is in robots detection in Sitecore Analytics module. My browser is recognized as a bot and there are some settings about that in Sitecore.Analytics.Tracking.config file:

     
      
    

    The timeout is set to 1min when bot is detected to save some mememory and not to keep session too long.

    The timeout will be set to desired 20min value when I either disable Analytics at all or disable Analytics.AutoDetectBots (in Sitecore.Analytics.Tracking.config file).

    The proper solution for this is to clasify browser correctly (not as a bot).

    Another post on this issue:

    Sitecore Analytics Robots SessionTimeout causing premature session timeout

提交回复
热议问题