How do I get a list of all HttpSession objects in a web application?

No, the Servlet API doesn’t provide a way. You really have to get hold of them all with help of a HttpSessionListener. You can find several examples in the following answers:

Leave a Comment