Search code examples
asp.netasp.net-mvc-2web-config

Session Timeout Limit in ASP.NET?


I'm amending a Session time out in the Web.Config for an ASP.NET application written in C# and currently I have the timeout set to 120 minutes as shown below:

<sessionState mode="InProc" cookieName="Application_SessionId" timeout="120"/>

Is there a limit to this value? So if for example I wished to set it to 24 hours (1440 minutes) would this be applied?

It's ASP.NET version 4.0 with MVC 2.0


Solution

  • I am not sure if it makes sense to set the session timeout to 24 hours, but yes it would be applicable to set it to a maximum of 365 days i think.