• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Killing

 
lokesh natarajan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
lokesh natarajan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic