I need to call Application_End()

I need to clean up at the end of a session by deleting a record. What else must I do since I presume I am overriding the default behavior?

Thanks,
newbieweb
newbiewebSr. Software EngineerAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
John ClaesConnect With a Mentor Senior .Net Consultant & Technical AnalistCommented:
msdn states :
http://msdn.microsoft.com/en-us/library/ms178473.aspx


==> Called once per lifetime of the application before the application is unloaded.
So this moment the application is unloading as we speak ;-)

It might be handy to use the dispose also to make sure all unmanged resources are released.

regards
poor beggar

0
 
newbiewebSr. Software EngineerAuthor Commented:
Does Application_End() not get called when running inside Visual Studio? It's called "Once per lifetime", and not when I end the application.

Any idea why not?
0
 
newbiewebSr. Software EngineerAuthor Commented:
neither Application_End() not Dispose() is getting called.

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
newbiewebSr. Software EngineerAuthor Commented:
"nor"
0
 
newbiewebSr. Software EngineerAuthor Commented:
Also, when I start in Visual Studio, Application_Start() is also not getting called. I see I need to read that link, but I do need to catch every time the session ends. What's a better function to that Application_End()?
0
 
newbiewebSr. Software EngineerAuthor Commented:
Thanks, here's my link to the EE question I placed where I am looking for a different function that's called when the browser closes:

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_26864364.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.