wood burning stoves*
The moose likes Tomcat and the fly likes Tomcat manager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat manager "Expire sessions" button" Watch "Tomcat manager "Expire sessions" button" New topic

Tomcat manager "Expire sessions" button

Aaron Wong

Joined: Jun 23, 2005
Posts: 6
Tomcat 6.0.20

I see Tomcat manager has the "Expire sessions" (with idle ≥) button for /docs, /examples, /host-manager and /manager, but that button is not available for my own app., what do I need to configure for it to show up for my app.?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
How is your app deployed?

Manager always show any new app I install.

Aaron Wong

Joined: Jun 23, 2005
Posts: 6
Hi Bill,

My app was deployed as a WAR file.

Tomcat manager does show my app., just doesn't show the "Expire sessions" button. Any idea how to get it to show up?
I read http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html, it's might be the way to do it but not sure the exact syntax, any examples?

[Thumbnail for 2010-10-18_1524.png]

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9937

What does your web.xml look like? Do you have a session-timeout configured in your web.xml?

[My Blog] [JavaRanch Journal]
Aaron Wong

Joined: Jun 23, 2005
Posts: 6
This is in the application's web.xml:
Aaron Wong

Joined: Jun 23, 2005
Posts: 6
Turns out if I have the applicaton context defined in Tomcat's server.xml, that button won't show up.

If I move the context into tomcat6\conf\Catalina\localhost\jira.xml, then the button shows.

Mystery solved.
I agree. Here's the link: http://aspose.com/file-tools
subject: Tomcat manager "Expire sessions" button
Similar Threads
session issue with ie on linex server
Viewing user connectivity & orphaned sessions
Purging attributes from HttpSession
Tomcat high number of http sessions
Enumerate active sessions