Click here to Skip to main content
12,448,362 members (51,446 online)
Click here to Skip to main content
Add your own
alternative version

Stats

6.6K views
1 bookmarked
Posted

Session Expiry when browser window is closed

, 28 Feb 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Following is a one line solution when it is written within Session_End() method of Global.asax file.Session.Abandon()HTH
Following is a one line solution when it is written within Session_End() method of Global.asax file.

Session.Abandon()

HTH

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Peace ON
Software Developer (Senior)
India India
Short Stories Stories We Live...

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralSession.Abandon won't come into picture as the scene here is... Pin
rajivpande8613-Mar-11 14:53
memberrajivpande8613-Mar-11 14:53 
GeneralReason for my vote of 2 Focuses on an important issue, but o... Pin
apbruno8-Mar-11 7:30
memberapbruno8-Mar-11 7:30 
GeneralFrom : donmillaalex Cool, article. We were doing something ... Pin
Chris Maunder1-Mar-11 10:04
adminChris Maunder1-Mar-11 10:04 
GeneralReason for my vote of 1. This only works for In-Proc session... Pin
manish7623528-Feb-11 23:50
membermanish7623528-Feb-11 23:50 
GeneralReason for my vote of 4 Good one... Pin
Pravin Patil, Mumbai28-Feb-11 3:15
memberPravin Patil, Mumbai28-Feb-11 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160811.3 | Last Updated 28 Feb 2011
Article Copyright 2011 by Peace ON
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid