• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

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
0
newbieweb
Asked:
newbieweb
  • 5
1 Solution
 
John ClaesSenior .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
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
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

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now