What is default session timeout in ASP.NET?

roushan picture roushan · May 16, 2009 · Viewed 141.1k times · Source

What is the default session timeout value in ASP.NET?

Answer

Steven Lyons picture Steven Lyons · May 16, 2009

It is 20 Minutes according to MSDN

From MSDN:

Optional TimeSpan attribute.

Specifies the number of minutes a session can be idle before it is abandoned. The timeout attribute cannot be set to a value that is greater than 525,601 minutes (1 year) for the in-process and state-server modes. The session timeout configuration setting applies only to ASP.NET pages. Changing the session timeout value does not affect the session time-out for ASP pages. Similarly, changing the session time-out for ASP pages does not affect the session time-out for ASP.NET pages. The default is 20 minutes.