Hot to close session in End event of my ASP.NET application ?

 Hi experts!

I’m new to ASP.NET and need a little help.
I have a session variable which I want to delete after my NET application close. I use InPro way and I read that I have events for end of application in which I think I can erase session.

1.      Where in VS2008 I get this event ? How to added it my application?
2.      What are command to complete remove session ? Session.Abandon or Session.Remove or ?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I would suggest you to have the clean up work over the global.asax

dvplayltdAuthor Commented:
ok ...LOOK like this is answe or my question.
But I need some clarify about Session_End .

If user simple close his brouser I will or will not get this event ?

And also you do not answer me on question 2
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

If you want to remove specific session variable then you can use Session.Remove() method and if you want to remove all the session variables then you need to use Session.Abandon() method.

However you still need to understand global.asax file. Please refer below link.

When Session_End() from global.asax executed it clears all the session variables automatically.

Hope this helps.
Alfred A.Commented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dvplayltdAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.