Re: How can I ckeck how many users are connected to a Web Site?

2002-08-02 Thread Glenn Nielsen

For a Tomcat 4 web application you can use the manager to see how
many active sessions there are.

For Apache you can use its extended-status to see how many
concurrent requests there are and how many httpd processes.

Regards,

Glenn

Luca Ventura wrote:
> 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:   
> For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can I ckeck how many users are connected to a Web Site?

2002-08-01 Thread Daniel Leong

Hi,

Perhaps the Interface HttpSessionListener (servlet 2.3+ spec only!) could be
used?

Dan

-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]>




RE: How can I ckeck how many users are connected to a Web Site?

2002-08-01 Thread Chris Newland

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]>




How can I ckeck how many users are connected to a Web Site?

2002-08-01 Thread Luca Ventura

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:   
For additional commands, e-mail: