Author: NixDev | Posted on: 10/24/2008 7:40:15 AM | Views : 434

Hi all.

I'm trying to implement a realtime monitoring system for a web site, pretty much a copy of the one published here:

 http://microsoft.apress.com/asptodayarchive/72060/actively-monitoring-your-aspnet-web-site-users

Now, I have a hashtable whose key is SessionId. It is used to store session-specific information. So, when the session ends (be it because the user clicks the "logout" button which calls Session.Abandon, or due to a timeout) I want to remove that info from my Hashtable (otherwise as days pass, I'll end up with a hashtable full of stale data).

The problem I'm having (and it seems its a fairly common one, due to the amount of related questions i found on several forums) is that on Session_End event in Global.Asax, HttpContext.Current is nothing (let alone HttpContext.Current.Session.SessionId).

...

Go to the complete details ...