javax.servlet.http.HttpSessionListener is an interface which provides the implementing class a capability to keep track of HTTP Session life cycle events. In this post, I’ll demonstrate with the help of a demo project, how to count active HTTP Sessions using HttpSessionListener