I have a 20min session timeout set , but when I try to access this value from an action, I get 1min .
Web.Config Settings:
<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, the timeout value is 20 minutes :
HttpContext.Current.Session.Timeout
But in action, my controller is set to 1min :
System.Web.HttpContext.Current.Session.Timeout HttpContext.Session.Timeout
I found that when I delete SitecoreHttpModule , which is of type ( Sitecore.Nexus.Web.HttpModule,Sitecore.Nexus ) from web.config, the timeout works fine, but I don't think I can delete it forever.
<system.webServer> <modules runAllManagedModulesForAllRequests="true"> <remove name="WebDAVModule"/> <add type="Sitecore.Web.RewriteModule, Sitecore.Kernel" name="SitecoreRewriteModule"/> <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 a place where I can set this timeout for this module, or is there another way to set the session timeout to the desired value?
source share