Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Session Expiry when browser window is closed

, 28 Feb 2011
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...

Comments and Discussions

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

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web02 | 2.8.140821.1 | Last Updated 28 Feb 2011
Article Copyright 2011 by Peace ON
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid