Time out for page

  • Thread starter Thread starter Sonnich
  • Start date Start date
S

Sonnich

Hi!

How do I set the timeout for a page?

Session.timeout is for the sesstion AFIAK.

BR
Sonnich
 
You can set the expiration for a page using the pragma meta tag, but not
much else. Since the user is not connected to the web page once the page is
served until a new request or postback is made, a timeout in the strict
sense doesn't do much. Setting the expiration on the page through the pragma
meta tag does give the browser an idea of when to expire it from the cache,
or not to cache it at all, but that's about all you can do.
 
I'm not sure a "page" can time out...
What are you trying to accomplish exactly?
 
My guess you want to change the timeout of the request. In case you need to
run long lasting code. And ASP.NET times out before it finishes?

Bad news. You can not. There is Server.ScriptTimeout but it only works when
compiled in DEBUG mode.

George.
 
My guess you want to change the timeout of the request. In case you need to
run long lasting code. And ASP.NET times out before it finishes?

Bad news. You can not. There is Server.ScriptTimeout but it only works when
compiled in DEBUG mode.

I found this:

Server.ScriptTimeOut

I asume it is in seconds. i set it to 60*10 asuming that it is 10
minutes, only in some cases it takes almost 3 minutes....
 
That thing only works when project compiled in debug.
Does not work otherwise.

George.
 
Back
Top