Meaningless Drivel is fun!
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 Java Interview Guide this week in the Jobs Discussion 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: 361
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:
subject: session tracking
It's not a secret anymore!