Can I get all the sessions currently active?

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
 
J

John Timney \(Microsoft MVP\)

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>
 
C

Cliff Harris

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
 
J

John Christensen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,006
Latest member
LauraSkx64

Latest Threads

Top