BUG: Session doesn't closed when user click 'X' button in Firefox and Chrome

When user closes a window using ‘X’ button, session isn’t closed. Agents still receiving invitations after that.

Firefox an Chrome are not catching onunload event, onbeforeunload should be used.


It may be a bit late for this but see my post: End a Session when User closes Browser Window via Red ‘X’ Button