This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
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
Joined: Apr 03, 2003
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