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

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.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12759
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.
Naina Srivastava

Joined: Jun 20, 2002
Posts: 10
Check the following thread too:
Bart Fransen

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,
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.