If you are asking in the context of a long HTTP request so that you want to prevent HTTP <httpRuntime executionTimeout="99999"></httpRuntime> , look at web.config <httpRuntime executionTimeout="99999"></httpRuntime> where executeTimeout in seconds, I think http: // msdn.microsoft.com/en-us/library/e1f13641(v=vs.71).aspx .
If this is really just a problem with the session timeout, is it possible to ping the server asynchronously under the same user session while the lengthy process is running?
Edit : Based on your editing, if you split the Website Maintenance web service into a service outside the session state area of ββthe regular part of the site, you can call it as often as you would like. If you are currently using the ASMX web service on your current website, for example, just split it into a separate application, perhaps as a directory outside your application, so that it falls under the same domain. I think it will be good.
I'm not sure what type of web service you are calling at this time (ASMX, WCF, etc.), or even if the web service you are calling at this time is in the same application as your ASPX page applications.
Shan Plourde
source share