473,320 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

is it possible to iterate through all the active sessions of an ASP.net application

Is it possible to iterate through all the active sessions of an ASP.net
application?

I have this fancy user object (with all kinds of properties) that I set as a
session level object on session start and I'd like to be able to find a
specific user's session so that I can make modifications to the fancy user
object (ie. add a note to the session, or change some properties within it,
or even end/kill the session!).

So simply put is there any way to track down a specific session? And if so
how (preferrably in a way that can be coded in ASP.NET)?

It would be kind of nice to have a page the listed all the active sessions
in the ASP.NET application... Perhaps my dreams are greater than what the
technology allows at this point...

Any help or insight is greatly appreciated.

Chris


Nov 17 '05 #1
2 4217
You would have to have an Application level object, store references to each
of the session objects. So something like an arraylist, to which you add
each session object every time a new session is created. Be sure to delete
the object from you collection once the session expires.

"Chris Hayes" <ch***@carrotink.com> wrote in message
news:u4**************@TK2MSFTNGP11.phx.gbl...
Is it possible to iterate through all the active sessions of an ASP.net
application?

I have this fancy user object (with all kinds of properties) that I set as a session level object on session start and I'd like to be able to find a
specific user's session so that I can make modifications to the fancy user
object (ie. add a note to the session, or change some properties within it, or even end/kill the session!).

So simply put is there any way to track down a specific session? And if so
how (preferrably in a way that can be coded in ASP.NET)?

It would be kind of nice to have a page the listed all the active sessions
in the ASP.NET application... Perhaps my dreams are greater than what the
technology allows at this point...

Any help or insight is greatly appreciated.

Chris

Nov 17 '05 #2
I was afraid that was going to be the solution...

Thanks,

Chris

"Marina" <zl*******@nospam.hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
You would have to have an Application level object, store references to each of the session objects. So something like an arraylist, to which you add
each session object every time a new session is created. Be sure to delete
the object from you collection once the session expires.

"Chris Hayes" <ch***@carrotink.com> wrote in message
news:u4**************@TK2MSFTNGP11.phx.gbl...
Is it possible to iterate through all the active sessions of an ASP.net
application?

I have this fancy user object (with all kinds of properties) that I set as
a
session level object on session start and I'd like to be able to find a
specific user's session so that I can make modifications to the fancy

user object (ie. add a note to the session, or change some properties within

it,
or even end/kill the session!).

So simply put is there any way to track down a specific session? And if so how (preferrably in a way that can be coded in ASP.NET)?

It would be kind of nice to have a page the listed all the active sessions in the ASP.NET application... Perhaps my dreams are greater than what the technology allows at this point...

Any help or insight is greatly appreciated.

Chris


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sugapablo | last post by:
When users log into my website, they're given session variables: Session("userid") = Let's say I have 7 users logged in. Is there a way to somehow loop through all the sessions and return all...
2
by: Marcio Kleemann | last post by:
Is there a way to get a list of the session id's for all currently active sessions for the application? Thanks
7
by: Christina N | last post by:
I want to output a list of all active SessionID's and their last time of activity. Can I loop through the active sessions and create a list like that? I use ASP.Net (VB.Net) Best regards,...
5
by: Gaetan | last post by:
I would like to guarantee that only one session at a time can request exclusive access to an object stored in Application. The ownership of the object must last throughout multiple HTTP requests. ...
9
by: Laurent Bugnion | last post by:
Hi, I am wondering what is the best way to find out which ASP.NET sessions are still active. Here is the reason: I have a custom control which can upload files. It saves the files in a folder...
3
by: Atul | last post by:
Hi, I am running .NET Framework 2.0 on windows XP SP2. I am stuck in a situation where I need to find out a list of all active sessions running in IIS for a web application. I know that .NET...
2
by: JoeSep | last post by:
Hello, I know that when the SessionState is set to SQL Server (ASP.NET 1.1) these counters in PerfMon are not valued: - Sessions Abandoned - Sessions Active - Sessions Timed Out - Sessions...
2
by: Krish........... | last post by:
Hi all, How to find out no of active sessions (at a time) in the web server.. I dont think handling Session_start and Session_end events are useful for this. Is there any way to find all current...
6
by: bill | last post by:
I have been "Googling" for about an hour and am turning up squat! I just started receiving this error when trying to log into a MS Access database from a vb .net web application. Recycling IIS...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.