Re: number of online users?
From: Hans Kesting (news.2.hansdk_at_spamgourmet.com)
Date: 10/01/04
- Next message: Ken: "Re: EXECUTE permission denied on object 'sp_sdidebug', database 'm"
- Previous message: Ken Dopierala Jr.: "Re: client side add to a table"
- In reply to: Esref DURNA: "number of online users?"
- Next in thread: Patrice: "Re: number of online users?"
- Reply: Patrice: "Re: number of online users?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 1 Oct 2004 14:42:06 +0200
Esref DURNA wrote:
> how I could count the number of online users with asp .net?
> which complement should i use?
Probably something like this:
- have a counter in the Application object
- on Session start increment the counter
- on Session end decrement it
This should count all active sessions, but there are some warnings:
- a session is counted until it ends, which is 20 min. after the user has left your site
- I read somewhere (can't remember the link - can someone confirm?)
that Session_OnEnd is not called if nothing was stored in the session.
Hans Kesting
- Next message: Ken: "Re: EXECUTE permission denied on object 'sp_sdidebug', database 'm"
- Previous message: Ken Dopierala Jr.: "Re: client side add to a table"
- In reply to: Esref DURNA: "number of online users?"
- Next in thread: Patrice: "Re: number of online users?"
- Reply: Patrice: "Re: number of online users?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|