File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Killing" Watch "Session Killing" New topic
Author

Session Killing

lokesh natarajan
Greenhorn

Joined: Apr 03, 2003
Posts: 2
Hi,
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.
Regards,
Loki
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.
HTH


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
Greenhorn

Joined: Apr 03, 2003
Posts: 2
Andy,
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 ???
regards,
loki
 
GeeCON Prague 2014
 
subject: Session Killing