Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I modify the timeout of an aspx page?

Is there a way to manually increase / decrease the timeout of a specific aspx page?

like image 968
Kevin Pang Avatar asked Oct 21 '08 21:10

Kevin Pang


People also ask

How do you set the value of a session timeout property?

The Timeout property can be set in the Web. config file for an application using the timeout attribute of the sessionState configuration element, or you can set the Timeout property value directly using application code. The Timeout property cannot be set to a value greater than 525,600 minutes (1 year).

How do I set timeout in Web services?

You can control the connection and socket timeout of the loading of the WSDL definition by setting enable-wsdl-discovery-timeouts . Use the value -1 to use the default of the underlying infrastructure. Use the value 0 to disable the timeouts. Use a positive integer to specify a timeout in milliseconds.

How do you handle session timeout?

Use some jquery that keys off of your session timeout variable in the web. config. You can use this Jquery delay trick that when a specific time occurs (x number of minutes after load of the page), it pops up a div stating session timeout in x minutes. Nice, clean and pretty simple.


1 Answers

In the web.config:

   <configuration>
      <location path="~/Default.aspx">
        <system.web>
          <httpRuntime executionTimeout="1000"/>      
        </system.web>    
      </location>
   </configuration>
like image 162
mohammedn Avatar answered Nov 03 '22 21:11

mohammedn