Re: number of online users?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Hans Kesting (news.2.hansdk_at_spamgourmet.com)
Date: 10/01/04


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



Relevant Pages

  • Re: [PHP] session_decode from session handler
    ... database from the set_session_handler. ... What I am trying to do is show a list of online users and the page they are ... the list of session and from that I loop through to get the session data of ... I am using PHP 5.2.3. ...
    (php.general)
  • Track Users Online with Sessions?
    ... online users using a mysql table and inserting the session and ... timestamp and checking it at period to remove it from the list after ... expiration time but is there a simpler way? ...
    (comp.lang.php)
  • Re: number of online users?
    ... Patrice ... "Hans Kesting" a écrit dans le message de ... >> how I could count the number of online users with asp .net? ... > - on Session start increment the counter ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Whos signed in
    ... >> Anyone know a good way to check if someone is signed in, has a session ... >> Steve. ... when you need the 'online visitors', just delete old records from the ... and what is left are possible online users. ...
    (comp.lang.php)
  • Re: How do u set classic ASP session variables from an ASP.NET application???
    ... "How to Share Session State Between Classic ASP and ASP.NET" ... > public class ASPSession ... > public String this ...
    (microsoft.public.dotnet.framework.aspnet)