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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "killing a session based on sessionId" Watch "killing a session based on sessionId" New topic

killing a session based on sessionId

Jetendra Ivaturi
Ranch Hand

Joined: Feb 08, 2007
Posts: 159
How to kill a session based on the sessionId ?


SCJP 1.4 & 1.5, SCWCD 1.5. Learn and Let Learn.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There is no way to look up a session based on its ID.
There used to be but the methods have been deprecated.

If you can describe what you are trying to accomplish, I might be able to steer you toward a solution.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: killing a session based on sessionId
jQuery in Action, 3rd edition