Hey all,
In a JSF application, I want to remove a session-scoped managed bean when the user closes their browser window. I've used a link before that executes the following:
session.removeAttribute("<nameOfManagedBean>");
This seems to do the trick nicely. However, I'd like this same code to run even if a user clicks on the "X" on their browser.
Is their some way of detecting this event properly on any browser?