• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

List Authenticated User for all sessions

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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. 192.168.2.3 Internet Explorer No No Nil 08:00 08:30
2. 192.168.2.4 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic