Hi, I have a session bean which I use to store user login information. When this bean is created I also write information to a database such as a userid, what time they logged in etc. Now when the session times out or the browser window is closed I'd like to be able to write to the database that this has happened. This way I can keep track of who is actively logged into the system. Does anybody know if this is possible and how to do it. Thanks
posted 13 years ago
Add a HttpSessionBindingListener to the session, it'll get unbound notification when the session times out.