wood burning stoves*
The moose likes JSP and the fly likes session tracking 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 » JSP
Bookmark "session tracking" Watch "session tracking" New topic

session tracking

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
Is there any way to know how many active session are there in my web application.

One way is to keep track of the users and corresponding session ids where the user logs in.

The server also keeps track of all the active information. Is there some api to extract that kind of information from server

SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

It's not hard to implement something like this yourself using session listeners.

I have an example app that does this at:

Look for SessionMonitor

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link: http://aspose.com/file-tools
subject: session tracking
Similar Threads
destroying session when user closes browser
Another question about sessions
session tracking
Cookies and session tracking
session replication