Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tracking active users using Listeners and j_username

Status
Not open for further replies.

Erikxxx

Programmer
May 5, 2003
49
GB
I'm writing an application where I want to track and display active users (users that are logged in).

My though is to be able to do this by using the HttpSessionListener or any other of the Listener interfaces (if needed)
from the servlet API.

I've written a piece of code that counts number of users online using the HttpSessionListener interface.
This works fine for me, however I've got the problem in how to get the username from my j_username FORM authentication
(using Tomcat 4.x). My intention is to add each user to an array or map, but I want my implementation of the listeners to do
the job.

Many Thanks
Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top