hmmm. thanks for your thoughts, and good question. upon logout, among
other things, i am calling session.invalidate(). should i do something
different?

p.s. i wouldn't mind comments on what a better way would be, once i get
it working at least *one* way first.

Barclay A. Dunn
Senior Developer
www.HappyPuppy.com
33-41 Newark St, #1A
Hoboken, NJ  07030
201-269-6302
 

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 12:58 PM
To: Tomcat Users List
Subject: RE: active session counting, redux



Howdy,

>2. i have a user object that gets bound to the session, so i caused
that
>user class to implement HttpSessionListener. Its sessionCreated() and

Not the best way, but since you didn't want comments on that...

>i've confirmed that it's not adding multiple entries for the same 
>session id, but on my dev server, where i *think* i am the only user,
it
>thinks there are 3 active sessions. this is after logging out, at which

>point the session is manually destroyed, and logging back in.

Perhaps when the session is getting manually destroyed, as opposed to
destroyed by the container, the sessionDestroyed event doesn't fire, so
your listener doesn't remove the session from the set of active ones?

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


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

Reply via email to