wood burning stoves
The moose likes JSP and the fly likes List Authenticated User for all sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "List Authenticated User for all sessions" Watch "List Authenticated User for all sessions" New topic

List Authenticated User for all sessions

Subliner Kemp

Joined: Nov 06, 2012
Posts: 6

I would like to have an admin page for my JSP application, where I can list all active users, their browser agents, whether they have validated themselves via login passwords.

So far I have achieved the active session part via created listener classes and making use of methods like "public void sessionCreated(HttpSessionEvent se)".

Now, I want to be able to list in a table like this:
Active User List:
No. IP Address Browser Agent Has Logged In Username Login Time Session Started Time Session To End Time
1. Internet Explorer No No Nil 08:00 08:30
2. Mozilla Firefox Yes jamesbran 08:15 08:12 08:42

How can I be able to find out the attributes above?
Also, for browser agents and such I can be able to track them via user request individually, and store them into their session variable. But how do I get to retrieve the user's session variable on this application-level and attach their agents to the corresponding number on the list?
I'm quite in a lost.
I agree. Here's the link: http://aspose.com/file-tools
subject: List Authenticated User for all sessions
jQuery in Action, 3rd edition