tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: "Expire sessions" button in Tomcat Manager
Date Mon, 02 May 2011 14:09:37 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub,

On 4/30/2011 9:19 PM, Jakub Królikowski wrote:
> In Tomcat Manager, on the application list, there is a button "Expire
> sessions"  available only for "/manager" application.
> 
> How should I configure tomcat to get this button for my application
> ("/") as well?

Take a look at the manager webapp's source code. I suspect it uses JMX
to inspect the session manager and invalidate each session ... or maybe
the session manager has an "invalidate all sessions" operation you can
perform.

If you don't feel like reading the source, you can write your own
HttpSessionListener, register all sessions that get created (remember to
de-register them when they are invalidated), and then consult that when
you want to expire all sessions.

Why do you want do expire all sessions at once?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2+uyEACgkQ9CaO5/Lv0PDM2ACgj6YUb8HtH6QhF/lVVpyOaNLK
Bu0AnR5u9zar07AIZ6FdV2C08qbgbupy
=5Rzc
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message