wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12759
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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