File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Session Killing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Killing" Watch "Session Killing" New topic

Session Killing

lokesh natarajan

Joined: Apr 03, 2003
Posts: 2
I am working with a web application based on JSP/Servlets and JavaBeans.
The application maintains sessions for individual users using the session variable concept. And it also stores the session id for individual users in a MS-SQL table meant for storing users logged in and their details.
I want to implement a feature that will enable the administrator of application to kill/ invalidate the session of any user who is currently using the application. Can the session id which is stored in the database be used for killing the session. If so, how to go about it...
Else any other alternatives to invalidate a session ???..kindly help.
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
Check out this Thread
Listening for Session End
Basically you need to implement the HttpSessionListener interface to receive notification when the session is invalidated.

Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
lokesh natarajan

Joined: Apr 03, 2003
Posts: 2
i want some other user(administrator) to kill the session of another user(normal user) using the normal users session id...
HttpSessionListener will inform only when the current session is invalidated....i hope i am right..
any solutions u have ???
I agree. Here's the link:
subject: Session Killing
It's not a secret anymore!