Re: Counting number of users logged in
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Fri, 7 Sep 2007 07:56:52 -0400
re:
!> how do I capture which users have just closed the browser window
You can't, unless you're using the Membership class for logins.
re:
!> those who have left the browser open
You can't.
re:
!> whose session has timed out?
You *can*, by capturing the Session_OnEnd events, but only if you're using InProc
session state management and relying on counting the number of sessions active.
If you're using SQL Server session state management or State Server,
the Session_OnEnd event ( also referred to as Session_End ) will never fire.
So, at most, you can keep track of how many sessions are active,
but not how many users are actually connected, if you rely on counting active sessions.
Btw, you didn't say whether you're using the Membership class for logins, but if you are,
you can trap the number of users logged in with Membership.GetNumberOfUsersOnline().
Simple, huh ? ...but it only works if you're using logins and Membership.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Mike P" <mike.parr@xxxxxxxxx> wrote in message news:%23z0mfzT8HHA.5424@xxxxxxxxxxxxxxxxxxxxxxx
That is the thing I don't know how to do....I can capture which users
have clicked on a Logoff link, but how do I capture which users have
just closed the browser window, or those who have left the browser open
and whose session has timed out?
*** Sent via Developersdex http://www.developersdex.com ***
.
- Follow-Ups:
- Re: Counting number of users logged in
- From: Mark Rae [MVP]
- Re: Counting number of users logged in
- References:
- Re: Counting number of users logged in
- From: Mark Rae [MVP]
- Re: Counting number of users logged in
- From: Mike P
- Re: Counting number of users logged in
- Prev by Date: Re: Autocompleteextender issue
- Next by Date: RE: Export to Excel. Browser setting?
- Previous by thread: Re: Counting number of users logged in
- Next by thread: Re: Counting number of users logged in
- Index(es):
Relevant Pages
|