I am developing a project purely on JSP and Servlets and require:

  1. to show a list of logged-in users
  2. and show the number of users accessing the site without login.

Does the Servlet API provide some solution to this?

I found this answer, this might answer my first question but is not detailed enough.

Also in addition to the above two questions, I would also like to know if I can log IP addresses of the Users accessing my site?

I am still studying the various concepts of Java EE and doesn't know how to start on this, so keeping this in mind please provide a starting point and a little detail as to how these three things can be achieved. Also I would be grateful if you can provide links or explanation which will help me understand the underlying concepts.

Edit
Report