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 questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "session questions" Watch "session questions" New topic
Author

session questions

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
Hi All
1) is it possible to retrieve an expired session. If yes then how
2) How to get the total count of active sessions.
Rgrds
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
1. The servlet engine unbinds all attached data as it is invalidating (expiring) a session so it would not do you any good to have one.
2. In Tomcat the management application will list the number of active sessions - or you could use one of the listeners.
Bill
Naina Srivastava
Greenhorn

Joined: Jun 20, 2002
Posts: 10
Check the following thread too:
http://www.coderanch.com/t/357689/Servlets/java/Session-Logging
Bart Fransen
Greenhorn

Joined: Feb 12, 2004
Posts: 4
Hi Manish,
2) http://stardeveloper.com/articles/display.html?article=2001112001&page=1 has a nice little tutorial on this.
Hope that helps,
Bart
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: session questions
 
Similar Threads
How to invalidate session on the basis of session ID in servlet
Session Tracking
How to know size of a session
limit the no of sessions with struts.
Session