aspose file tools*
The moose likes Servlets and the fly likes How to know the sessionID is alive ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to know the sessionID is alive ?" Watch "How to know the sessionID is alive ?" New topic
Author

How to know the sessionID is alive ?

kwwong wong
Ranch Hand

Joined: Feb 15, 2002
Posts: 56
For example, when I get the sessionID from database and want to know the session is alive or not. How can I do?
Hartmut Ludwig
Ranch Hand

Joined: Aug 31, 2002
Posts: 51
Originally posted by kwwong wong:
For example, when I get the sessionID from database and want to know the session is alive or not. How can I do?

Hi, Kwwong,
I just found out, how it works for Tomcat's Session Manager.
Using org.apache.catalina.session.ManagerBase you can call the method findSession(java.lang.String id) which returns the active Session with the specified session id if there is one otherwise it returns null.
sl
Hartmut
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to know the sessionID is alive ?