Results 1 to 2 of 2
Thread: Kill sessions
- 10-01-2009, 07:13 AM #1Member
- Join Date
- Oct 2009
- Rep Power
here's my problem. I have a web app that's deployed on a tomcat cluster. i have a requirement in the application, that the admin can kill some user sessions when he wishes. for that we need the session details of all the users which we can save it in the application. now, the problem is that, how do we know which session is attached with which tomcat instance of the cluster?
is there a way, where we can get this information or , can we send information to the proxy server, etc. to kill the required user session ?
please help. any other suggestions are also welcome.
- 10-05-2009, 11:22 PM #2
maybe in your application if you created a HttpSessionListener that maintained your own administrative map of sessions. this would allow your admin module to get a handle on the session object. while not being able to delete them, you could remove all of the session attributes from the session(which depending on what your app stores in the session, should cause the user to get booted) and set the maxInactiveInterval to 1 second, which would cause it to be deleted right away.
for finding the user, you could have an application convention of storing the user's login name as a session attribute that this administrative session manager would be able to show.
- By Peter in forum Advanced JavaReplies: 6Last Post: 06-22-2010, 09:08 AM
- By Dr_Misterio in forum New To JavaReplies: 2Last Post: 08-05-2009, 04:31 PM
- By stockbroker in forum Advanced JavaReplies: 1Last Post: 04-09-2009, 07:27 PM
- By Ed in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-02-2007, 04:46 PM
- By Heather in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-30-2007, 04:44 PM