We have a ASP.Net MVC Web Application that keeps timing out after exactly 30 minutes.
In the web.config, I set the sessionState timeout value to 500 minutes. After 30 minutes, the session still times out. So, I set it to 1 minute, which actually works. The session times out after exactly 1 minute.
Then, I added the following code to Session_Start in Global.asax.cs:
Session.Timeout = 500;
This effectively overrode the 1 minute timeout setting in the web.config. But, like clockwork, the session still timed out at exactly 30 minutes.
What can I do to make IIS honor the Session Timeout value?