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:[EMAIL PROTECTED]]
> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to