How To End A User's Session in Tomcat?

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

Description:

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?

Solution:

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:

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

For WebAdmin r14.0, the path is:

/..../tomcat/conf 

For WebAndmin r15.0, the path is:

/..../tomcat-6.0.29/conf 

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

Recycle TOMCAT for these changes to take effect.