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=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="525600"/>