Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

List Authenticated User for all sessions  RSS feed

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!