tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: Getting detailed list of active sessions for a Context
Date Wed, 22 Dec 2010 11:23:08 GMT
2010/12/22 Jean-Noël Colin <>:
> I also tried casting the HttpSession retrieved in the HttpSessionListener, without success.

That would be StandardSessionFacade, not a StandardSession.

> Would you have any further suggestion?

The manager webapp (aka HTMLManagerServlet) uses JMX. You may try
using it as well.

> Session Id, Creation time, last activity, IP address, username (in case he's authenticated)

There is no IP address information in a session, and "username" that
the Manager webapp displays is just a "Guessed User name" -- it looks
for certain attribute names in the session, in case an authentication
framework stored the information there.

You may implement a Filter (or Valve) that will "postprocess" a
request and extract the information you are looking for from there
(and store it as a session attribute, or put it in your own specific

Best regards,
Konstantin Kolinko

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

View raw message