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

Currently Logged on users

Hello,
Is ther an API I can use to get a list of / or the number of users
currently logged on to an iis6 or iis 7 web app. I Know IIS keeps a seesion
for each user. how can i get an enumeration of those sessions? I realize
that the session m,ay have timed out, but if i'm trying to redeploy an app
to iis , it would be nice if i coul verify that the number of active session
was xero before pushing out any changes, essentially killing all active
sessions.
Russ
Jun 8 '07 #1
1 1532
One approach is to have an application-level counter (stored in Application
state) that will be incremented in the Session_Start event and the same will
be decremented in the Session_End event. Both the session events can be
hooked from global.asax.

"gover" wrote:
Hello,
Is ther an API I can use to get a list of / or the number of users
currently logged on to an iis6 or iis 7 web app. I Know IIS keeps a seesion
for each user. how can i get an enumeration of those sessions? I realize
that the session m,ay have timed out, but if i'm trying to redeploy an app
to iis , it would be nice if i coul verify that the number of active session
was xero before pushing out any changes, essentially killing all active
sessions.
Russ
Jun 8 '07 #2

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

Similar topics

1
by: Marcin Zmyslowski | last post by:
Hello all! I want to create a page in ASP language which gives me information about currently logged users. I thought to do it by this way: when somebody will log in to page, there will be a...
2
by: Lauren Quantrell | last post by:
In my MS Access2000 MDB Files I used the code below to populate a list box of all logged on users. Can anyone help me figure out a way to modify the code to do the same with my MS Access2000 ADP...
0
by: RF | last post by:
Hi, I need some expert advice. I have managed to query each system in our domain to find the current user logged in (using WIN32_ComputerSystem). However, the process can take from 5 seconds to...
0
by: Bilge TUTAK | last post by:
Hi, I have W2K machine and an Active Directory on it, and I have 150 workstations authenticating from that machine using AD. I want to write a code that is responsible for checking the users...
2
by: SStory | last post by:
I have a service which has no U/I, that I use to ensure a certain tray application is running. I would like for the service which runs under "Local System", to create the process as a normal app...
7
by: John | last post by:
Hi We can get the current logged in user's name but is it also possible to get the default email form outlook of the currently logged-in user as well? The reason for this is that I need to email...
6
by: MuZZy | last post by:
Hi, I am looking to find a way to get currently logged in user's object GUID without querying ActiveDirectory. For example, when i log in to my laptop from home, I'm not on the office network so...
2
by: gihope | last post by:
Hi, can anyone advise me how I can access the UserName of a currently logged in user without using the LoginName control. For instance I want to search tables I have created in my database that I...
5
by: Benedictum | last post by:
I need to implement an option to display on the web page for users currently logged in. How do I implement this in ASP.NET (c#). I could probably have a boolean field in the database where a user...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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...

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.