Hi all,
I'm writing an application where I want to track and display active users (users that are logged in).
My thought is to be able to do this by using the HttpSessionListener or any other of the Listener interfaces from the servlet API.
I've written a piece of code that counts number of users online using the HttpSessionListener interface.
This is 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. I just can't figure out how to get my listeners to get hold of the username
Many Thanks
Erik
I'm writing an application where I want to track and display active users (users that are logged in).
My thought is to be able to do this by using the HttpSessionListener or any other of the Listener interfaces from the servlet API.
I've written a piece of code that counts number of users online using the HttpSessionListener interface.
This is 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. I just can't figure out how to get my listeners to get hold of the username
Many Thanks
Erik