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 settings are:
<sessionState mode="InProc" cookieless="false" timeout="20">
<authentication mode="None">
<forms name=".ASPXAUTH" cookieless="UseCookies" timeout="20" />
</authentication>
In Global.asax.cs in Session_Start value of timeout is 20min:
HttpContext.Current.Session.Timeout
But in action in my controller is set to 1min:
System.Web.HttpContext.Current.Session.Timeout
HttpContext.Session.Timeout
I've found that when I remove SitecoreHttpModule
which is of type (Sitecore.Nexus.Web.HttpModule,Sitecore.Nexus
) from web.config the timeout works fine but I dont think I can remove it permanently.
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule"/>
<add type="Sitecore.Web.RewriteModule, Sitecore.Kernel" name="SitecoreRewriteModule"/>
<!-- !!!REMOVED MODULE!!! <add type="Sitecore.Nexus.Web.HttpModule,Sitecore.Nexus" name="SitecoreHttpModule"/> -->
<add type="Sitecore.Resources.Media.UploadWatcher, Sitecore.Kernel" name="SitecoreUploadWatcher"/>
<add type="Sitecore.IO.XslWatcher, Sitecore.Kernel" name="SitecoreXslWatcher"/>
<add type="Sitecore.IO.LayoutWatcher, Sitecore.Kernel" name="SitecoreLayoutWatcher"/>
<add type="Sitecore.Configuration.ConfigWatcher, Sitecore.Kernel" name="SitecoreConfigWatcher"/>
...
</modules>
</system.webServer>
Is there any place I can configure this timeout for this module or there is any other way to set session timeout to desired value?