Problem solve Get help with specific problems with your technologies, process and projects.

Session timeout

Ninety minutes is not the maximum limit you can set for session timeout.

This tip was submitted to the Visual Studio .NET Info Center Tip Exchange by member Vadivel Mohanakrishnan. Please let other users know how useful it is by rating the tip below. Got a tip or code of your own you'd like to share? Submit it here.

As you all know, we can set the session timeout for an application in our web.config itself. But if you were thinking that 90 minutes is the maximum limit we can set for it, then you are wrong. The maximum limit for session timeout is 525,600 minutes -- i.e., 365 days x 24 hours x 60 min.


<sessionState mode="InProc" stateConnectionString="tcpip=" sqlConnectionString="data source=;user id=sa;password=" cookieless="false" timeout="525600"/>

Dig Deeper on Web services and SOA implementations in the .NET Framework

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.