views:

2363

answers:

5

My previous experience with ASP.NET web application (regarding the timeout) is that it logouts the user every 30 minutes, regardless of what module is running, Is there a way that we can increase the application timeout to an hour or two?

Any help is highly appreciated, thanks in advance.

+2  A: 

You can set the Sesion timeout in your web.config file.

<sessionState timeout="60" />

The value is defined in minutes.

I think you can set it programmatically as well from the HttpContext.Current.Session object.

Peter Lindholm
A: 

There is a value in your web.config where you can set the timeout length.

  <sessionState
    timeout="60"
  />
TheTXI
+1  A: 

If by application timeout you mean session timeout, then this can be done in the web.config. The timeout attribute on the sessionstate element takes an integer that indicates the number of minutes of inactivity before it times out the user's session.

<configuration>
  <sessionstate timeout="20" />
.
.
.
</configuration>
Rich
+1  A: 

In the web.config , set the value of timeout attribute to the value that you need.

<system.web>
    <authentication mode="Forms">
          <forms timeout="value in minutes"/>
    </authentication>
</system.web>
Geranium
A: 

I'm kind of waiting for an answer on a similar question:

http://stackoverflow.com/questions/235119/can-you-programmatically-change-session-time-out-in-asp-net

Juan Manuel