What happens when the user leaves?
-
Wow 2 questions in 1 day... How do you fire off a "clean up" function if a user simply closes the browser? I have a customized cache that I would like to flush before they are gone. (This is not the built in cache object of .NET) The INPROC is set in my web.config and I have code in the Session_End portion of my Global.asax file. However, I have determined through debugging that I am hitting the Session_Start, but not the Session_End. Thank you. William
-
Wow 2 questions in 1 day... How do you fire off a "clean up" function if a user simply closes the browser? I have a customized cache that I would like to flush before they are gone. (This is not the built in cache object of .NET) The INPROC is set in my web.config and I have code in the Session_End portion of my Global.asax file. However, I have determined through debugging that I am hitting the Session_Start, but not the Session_End. Thank you. William
There is no event on the server that says the user closed the browser. The only thing you can do is wait for the user's session to timeout, which, by default, I think, is 20 minutes. Then your Session_End code gets kicked off, if it's still running under the debugger. You might even catch the Session_End event being kicked off when you start your app under the debugger again. It might kick off first thing before the new Session_Start event is fired. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
There is no event on the server that says the user closed the browser. The only thing you can do is wait for the user's session to timeout, which, by default, I think, is 20 minutes. Then your Session_End code gets kicked off, if it's still running under the debugger. You might even catch the Session_End event being kicked off when you start your app under the debugger again. It might kick off first thing before the new Session_Start event is fired. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Thanks Rage. The knowledge is helpful. BTW, 2Bad Rage is gone. Will-Keep-Listening-Anyway :-D
Nope. Rage is not gone. Rage shows up everytime I go to work... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome