Home » Asp.netRSS

Will sessions kill when application error occurs which is in global.aspx

can you please tell Will sessions kill when application error occurs which is in global.aspx ?

 

ex:

void Application_Error(object sender, EventArgs e)

{

 

}

 

1 Answer Found

 

Answer 1

No. sessions  will not be expired(sessions will alive) even if it is  application error.

you can check by debugging in global.asax.put breakpoint at  { in the following code in global.asax and right click and open quickwatch.provide session name there and check wheather session value is displaying or not.

The value will be  displayed there. 

void Application_Error(object sender, EventArgs e)

{

 

Thanks

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter