473,383 Members | 1,829 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,383 software developers and data experts.

Can I loop through all active session objects?

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,
Christina
Nov 18 '05 #1
7 3837
No, by definition a session is private but you could have each session
recording its activity in a global structure...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:u4**************@TK2MSFTNGP09.phx.gbl...
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,
Christina

Nov 18 '05 #2
Is it private for the application? The application layer should be able to
access its active sessions. Or how about the server itself?

Christina

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No, by definition a session is private but you could have each session
recording its activity in a global structure...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:u4**************@TK2MSFTNGP09.phx.gbl...
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,
Christina


Nov 18 '05 #3
Do you have a suggestion for a structure like that, using vb.net?

Thanks,
Christina

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No, by definition a session is private but you could have each session
recording its activity in a global structure...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:u4**************@TK2MSFTNGP09.phx.gbl...
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,
Christina


Nov 18 '05 #4
IMO no. The Web progamming model is to process a request and have all at
your disposal to process this request. It includes session data belonging to
this request but not session data that could be used in other request... IMO
the whole list is private to the module thant handles associating the
session state to the current request.

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:uK**************@TK2MSFTNGP15.phx.gbl...
Is it private for the application? The application layer should be able to
access its active sessions. Or how about the server itself?

Christina

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No, by definition a session is private but you could have each session
recording its activity in a global structure...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:u4**************@TK2MSFTNGP09.phx.gbl...
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,
Christina



Nov 18 '05 #5
Session is a Collection. There is one per client. So, what you need is
either a structure or class containing a Collection or array (to hold the
members of the client's Session Collection), as well as a SessionID (to
identify the client Session).

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Christina N" <no@mail.please> wrote in message
news:uo*************@TK2MSFTNGP10.phx.gbl...
Do you have a suggestion for a structure like that, using vb.net?

Thanks,
Christina

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No, by definition a session is private but you could have each session
recording its activity in a global structure...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:u4**************@TK2MSFTNGP09.phx.gbl...
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,
Christina



Nov 18 '05 #6
If you have a page on which all pages are based you could : when this page
load, records the sessionid and the current server date/time in a
collection. The collection could be a HashTable.

You'll then be able to sort all sessionIDs and the last activity date for
this session from all sessions...

You may want also describe why or for what you need this information. For
example the number of sessions is a counter that is readily available as a
performance counter...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:uo***************@TK2MSFTNGP10.phx.gbl...
Do you have a suggestion for a structure like that, using vb.net?

Thanks,
Christina

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No, by definition a session is private but you could have each session
recording its activity in a global structure...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:u4**************@TK2MSFTNGP09.phx.gbl...
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,
Christina



Nov 18 '05 #7
I wonder if writing a HttpModule would be useful in this case. You can
handle the PreProcess Request events and at that point you can do what
Patrice is suggesting below.

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Patrice" <no****@nowhere.com> wrote in message
news:u2**************@TK2MSFTNGP10.phx.gbl...
If you have a page on which all pages are based you could : when this page
load, records the sessionid and the current server date/time in a
collection. The collection could be a HashTable.

You'll then be able to sort all sessionIDs and the last activity date for
this session from all sessions...

You may want also describe why or for what you need this information. For
example the number of sessions is a counter that is readily available as a
performance counter...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:uo***************@TK2MSFTNGP10.phx.gbl...
Do you have a suggestion for a structure like that, using vb.net?

Thanks,
Christina

"Patrice" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
No, by definition a session is private but you could have each session
recording its activity in a global structure...

Patrice

--

"Christina N" <no@mail.please> a écrit dans le message de
news:u4**************@TK2MSFTNGP09.phx.gbl...
> 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,
> Christina
>
>



Nov 18 '05 #8

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

Similar topics

3
by: Hermes | last post by:
Hi all, We have a web page which validates users againt active directory (kinda), Effectively the code we use will check the user's password and if successful creates some session's for what...
1
by: anonymous | last post by:
Hi all, I've been searching the way to achieve the following task. But no luck so far. I have a web site(main site), which requires authentication. This authentication is set at Windows...
2
by: Chris Hayes | last post by:
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...
3
by: Dustin Aleksiuk | last post by:
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...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
2
by: Mehdi | last post by:
Hi, In order to keep all my properties and objects that I use in the session in one place, I have created a class "SessionCore.cs" and on Session_Start I create a new instance if it as follow:...
1
by: Kevin Jackson | last post by:
Hello, Using any of the ASP.NET session storage techniques, is there a method in one of the HTTP objects that you can get the list of active (not abandoned or timed out) session keys (and maybe...
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: 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...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.