File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

List Authenticated User for all sessions

 
Subliner Kemp
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic