Okay... I have a web app that requires a user to login. Part of the requirements is to not allow the user to login twice. So, I figured I could use an Application object in order to hold a list of users logged in. When they log in, I will check the list to make sure that they aren't already in there, and if not, add them. I add this into a Session Variable, for use throughout the app. When the user logs out, I have code to remove it from the Applicaion Object, in the Session_End event in my globals.asax.
My problem is this... If the user closes the browser without signing out, the entry doesn't get removed. Also, if the session times out, does Session_End get called? And if so, is the session object still available within this event? I need to grab the username from the Session in order to know who to remove from the Application.
Any ideas? Thanks in advance...
Doug
My problem is this... If the user closes the browser without signing out, the entry doesn't get removed. Also, if the session times out, does Session_End get called? And if so, is the session object still available within this event? I need to grab the username from the Session in order to know who to remove from the Application.
Any ideas? Thanks in advance...
Doug