http://msdn.microsoft.com/library/de...atesection.asp
<sessionState mode="Off|InProc|StateServer|SQLServer"
cookieless="true|false"
timeout="number of minutes"
stateConnectionString="tcpip=server:port"
sqlConnectionString="sql connection string"
stateNetworkTimeout="number of seconds"/>
timeout - Specifies the number of minutes a session can be idle before it is
abandoned. The default is 20.
http://msdn.microsoft.com/library/de...rowebforms.asp
Application_End - Fires when the last user in the site's session times out
From the documentation Application_End ONLY FIRES when the LAST USER in
the site's session times out, since the default value is 20 mintues once
http://msdn.microsoft.com/library/de...netchapt15.asp
I noticed this piece of code from the above link.
protected void Application_End(Object sender, EventArgs e){
//release the writer
// Even if this doesn't execute, when the appdomain gets shutdown
//it will be released anyways
if(_writer!=null)
_writer.Close();
}
Just by the wording in the comment section it seems that Application_End
might not always get called on an app shutdown.
"J-T" <J-*@microsft.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have my applciation installed in an appplication pool (a worker
process) -IIS 6.0-which is defined to be shut down after 20 minutes of
being
idle.If I put a breakpoint in Application_End method of Global.asax and
there is no request for 20 minutes ,dose the breakpoint works for me?
Is there a document which can gives me more infomration in this behaviour?
Thanks