Just wondering if it's possible for my application to be able to look at all the Sessions that are in progress. Part of the information inside Session contains the state/providence that the user is living in. I'd like to be able to see, at one time, that we
have 50 users from New York and 10 users from Quebec and 18 users from Texas and ... Or can't the Application look inside the Sessions? I know I can get a count of all the sessions (by using the Win2k Server's perfmgr.msc), so it seems like it's possible to
look Inside those sessions. My google searches aren't turning up anything useful... anybody know? Thanks!
It may be possible to examine other sessions from within the current one, but I am not aware of any way to do this. Session variables, by definition, are specific to the current browser instance. Consider storing the information you would like to share in Application
variables or Cache variables instead. The data will then be available to any session.
Jamie, thanks for the quick reply! I might've worded my question poorly, though. I don't want other sessions to see other sessions. I'd like the server itself to be able to look inside sessions. If you do a start/run/perfmon.msc, click the "+" to add a counter,
choose "ASP.NET applications" as the performance object, you'll see session counters in the counter list (Sessions Abandoned, Sessions Active, Sessions Timed Out, Sessions Total). Now granted, those are just counters, but how are they incremented? It seems
the server itself has some access to the ASP.NET's Session object; in order to increment the counter. I guess what I'm saying is, I'd like a way for me to write an application on the server that would look at ALL the current sessions, and give me some info
back. Almost like an "Administrative" style program... like an MMC snap-in. But I dont' want the actual users of ASP.NET to see stuff between themselves. Thanks!
Hi Thomas, I think I see what you are after now. I really don't know how you could pull this off. Are you looking to do this within your ASP.Net application, or do you want to write a Windows application that monitors all web applicaitons on your server? I
know it is possible to get SessionID's for your sessions - you could store these somewhere where you could access them from another process. But, I don't know what you can do with a SessionID once you have it.
Actually, either method would work for me (a windows app monitoring asp.net, or an asp.net app itself). I'll check out the SessionID to see how it can be dug up. Thanks!
Thomas1
Member
625 Points
125 Posts
Can my app see "all" sessions and "all" their info globally?
Jan 05, 2004 12:22 AM|LINK
NetProfit
Contributor
6278 Points
1252 Posts
Re: Can my app see "all" sessions and "all" their info globally?
Jan 05, 2004 12:26 AM|LINK
Thomas1
Member
625 Points
125 Posts
Re: Can my app see "all" sessions and "all" their info globally?
Jan 05, 2004 12:54 AM|LINK
NetProfit
Contributor
6278 Points
1252 Posts
Re: Can my app see "all" sessions and "all" their info globally?
Jan 05, 2004 11:54 AM|LINK
Thomas1
Member
625 Points
125 Posts
Re: Can my app see "all" sessions and "all" their info globally?
Jan 05, 2004 12:48 PM|LINK