File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Who is loged in Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Who is loged in " Watch "Who is loged in " New topic

Who is loged in

Prem Khan
Ranch Hand

Joined: May 30, 2005
Posts: 189
Hey is there a way to see what users are currently loged into tomcat ?
Like returning the Strings into a java.util.list or some thing ?
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

It depends on what you mean by "logged in".
In a stateless environment you are never really logged in.

I have an example app on my site that registers and mapps sessions using session listeners. It may be enough to get you started.

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: Who is loged in
It's not a secret anymore!