tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Newland" <chris.newl...@emorphia.com>
Subject RE: How can I ckeck how many users are connected to a Web Site?
Date Thu, 01 Aug 2002 13:25:42 GMT
Hi Luca,

If your website has a login system then you can increment a counter in a
database each time someone logs in, and decrement it when they log out. You
can then build a private admin web page that views the counter. The problem
with this method is that many people just close their browser without
logging out from websites.

A way to solve the logging out problem is to store a "last active" timestamp
against each logged in user and to update it each time they request a page
(you'll need to use cookies / sessions to identify the actions of each
user). You can assume that a user has logged out once a certain period of
inactivity has occurred.

If you don't have a login system on your website, you could use the IP
address of the user making the request and combine this with the inactivity
tracking system mentioned above.

Hope this helps,

Regards,

Chris Newland

> -----Original Message-----
> From: Luca Ventura [mailto:ventural@libero.it]
> Sent: 01 August 2002 14:13
> To: tomcat-dev
> Subject: How can I ckeck how many users are connected to a Web Site?
>
>
> Hello everybody!
>
> I would like to know if it is possible to know in any moment
> how many users are connected to a Web Site.
>
> How can I do this?
>
> Thanks a lot in advance!
>
>                                   Luca
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message