In browser (Window/Tab) close I have to call logout functionality.
Does Vaadin 8 have browser close event ?
And I try detach() but it not work.
this.addDetachListener(new DetachListener() {
public void detach(DetachEvent event) {
}
});
In browser (Window/Tab) close I have to call logout functionality.
Does Vaadin 8 have browser close event ?
And I try detach() but it not work.
this.addDetachListener(new DetachListener() {
public void detach(DetachEvent event) {
}
});
You can’t reliably detect browser closing. UI detach will happen eventually, but it’s a bit complicated. If you need prompt cleanup, you can use https://vaadin.com/directory/component/cleanupservlet-add-on .