close session trigger event
I would like to trigger a event after the session close.
I try to close the session by the following code.
button {
FacesContext context = FacesContext.getCurrentInstance ();
HttpSession session = (HttpSession) context.getExternalContext
().getSession (false);
session.invalidate ();
}
those event triger by a button , and I found that it can trigger a even in session.destroy(), but if I close the browser , session.destroy does not trigger.
Do anyone can help me to solve this problem.
Thanks

