It's not a secret anymore!*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Who is loged in " Watch "Who is loged in " New topic
Author

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
Sheriff

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.

http://simple.souther.us/not-so-simple.html

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: Who is loged in