473,804 Members | 2,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3866
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******** ******@TK2MSFTN GP09.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******** ********@TK2MSF TNGP14.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******** ******@TK2MSFTN GP09.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******** ********@TK2MSF TNGP14.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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP15.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******** ********@TK2MSF TNGP14.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******** ******@TK2MSFTN GP09.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******** *****@TK2MSFTNG P10.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******** ********@TK2MSF TNGP14.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******** ******@TK2MSFTN GP09.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******** *******@TK2MSFT NGP10.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******** ********@TK2MSF TNGP14.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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP10.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******** *******@TK2MSFT NGP10.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******** ********@TK2MSF TNGP14.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******** ******@TK2MSFTN GP09.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
1068
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 access they have in the internal site. We have noticed though that the query against the LDAP doesnt seem to disconnect and by doing a netstat -a we get alot of ports with an ESTABLISHED status on the LDAP server. When this gets to around 200 it...
1
7315
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 directory level, so user will see the pop up gray box in order to log in rather than custom web page. The username and password are stored at active directory level, thus this is the windows integrated security.
2
4253
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 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...
3
2136
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 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.
1
4760
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 I have run into I am not sure how to fix, and really not sure what is causing it. Here's what is going on (test server - Windows 2003 Server): I have a page in a folder (under anonymous authentication in IIS6) that has a link on it that...
2
2144
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: Session = new SessionCore(Session.SessionID); The somewhere within the application for example when I need to get stored
1
1826
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 other information about these sessions)? I assumed there would be a collection somewhere which held all of the active session keys but I'm not finding it anywhere.
3
3879
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.0 has introduced a new class that facilitate this task very easily, somehow couldnt recall its name. Any help would be highly appreciated.
2
12153
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 active sessions by using Application object ? Thanx, Krish....
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10346
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10090
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5531
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.