Step 1: Register a session context listener.

Step 2: When each session starts, store an Integer in a Hashtable. The key
would be the user name. The Integer value is the number of currently active
sessions.

Step 3: In the session destroy, decrement the Integer count, and if it is 0,
remove it from the Hashtable.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585


-----Original Message-----
From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]]
Sent: 11 October, 2002 2:17 AM
To: Tomcat Users List
Subject: How to limit the number of connections per user?


Hi, is there any way to do this?

I would like to be able to limit the number of connections per user for
production environment.

--
GRIDSYSTEMS                    Rodrigo Ruiz Aguayo
Parc Bit - Son Espanyol        Analista Programador
07120 Palma de Mallorca        [EMAIL PROTECTED]
Baleares - Espaņa              Tel:+34-971435085
www.gridsystems.com            Fax:+34-971435082


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