Chris,

I checked sources, HTMLManagerServlet.java is the answer.
Button "expire" is showing only if application is deployed, it's
hidden when app is configured with servlet.xml.
Does anybody knows why?

Why I want to expire sessions? Well, actually I need it only for
performance tests. I'm testing application with JMeter, creating a lot
of sessions. When I want to stop test and run the next one - sessions
from first test are still there. I would like to expire them if
they're idle more than 10 minutes.

Bests,

Jakub

On Mon, May 2, 2011 at 4:09 PM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

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

Reply via email to