How To End A User's Session in Tomcat?

Document ID : KB000049024
Last Modified Date : 14/02/2018
Show Technical Document Details


From time to time there might be some user's sessions active in TOMCAT, but user has gone.

Is there a way to manage and kill these orphan user's session?


In order to manage TOMCAT's user sessions, you must implement MANAGER ROLE.

You have to update TOMCAT's tomcat-users.xml file like follows:

<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="manager"/>
 *** End Of Data *** 

For WebAdmin r14.0, the path is:


For WebAndmin r15.0, the path is:


where /..../ is your install directory.

Recycle TOMCAT for these changes to take effect.