Results 1 to 2 of 2
Thread: Kill sessions
- 10-01-2009, 06:13 AM #1
Member
- Join Date
- Oct 2009
- Posts
- 1
- Rep Power
- 0
Kill sessions
Hi,
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.
Thanks,
Subscriber.
- 10-05-2009, 10: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.
Similar Threads
-
kill a thread
By Peter in forum Advanced JavaReplies: 6Last Post: 06-22-2010, 08:08 AM -
How I launch an external program and kill the father?
By Dr_Misterio in forum New To JavaReplies: 2Last Post: 08-05-2009, 03:31 PM -
Identify and kill forked jvm (ant java task)
By stockbroker in forum Advanced JavaReplies: 1Last Post: 04-09-2009, 06:27 PM -
Sessions in jsp
By Ed in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-02-2007, 03:46 PM -
sessions in jsp
By Heather in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 06-30-2007, 03:44 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks