Can I get all the sessions currently active?

  • Thread starter Thread starter Dustin Aleksiuk
  • Start date Start date
D

Dustin Aleksiuk

Is there a way to get a list of all the session objects
currently running in my web app? I've been looking through
the API but I can't find anything yet. In this app, every
user gets a certain parameter set in their session when
they log in. I would like to be able to get every logged-
in user's parameter value.

If this can't be done, please let me know and I'll have to
find a way around it. Thanks.

Dustin Aleksiuk
 
Sessions are private to the user owning the session - whihc isn't you as you
are using another session. Why not look at writing each value to an
application level array (which would be shared) or a DB table at session on
start and read them out of that instead.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
 
As a more general question along the same lines:
Is there a way, on the web server serving the ASP.Net pages, to look at
currently active sessions?
Can this be accomplished through ISS tools somehow?

-Cliff
 
There are several performance counters related to the .NET framework and
ASP.NET. Some of them involve aggregate session statistics that might be
helpful to you.

John Christensen
Genesee Survey Services
 
Back
Top