In a previous project I was using onWindowClosing and in that event handler open a new window to execute the logout command. The window closes itself as soon as it is executed (using javascript). The user barely notices this.
It used to work on IE/FireFox and even Chrome.
We stopped doing this since it is not a nice way of handling sessions on the web.
On Wed, Nov 4, 2015 at 1:05 PM, Jens <jens.nehlmeier@gmail.com> wrote:
I don't think so. Maybe there is a different hook in new browsers but the user can still just hard kill the browser process or do a hard shutdown/restart of the host or the internet connection is lost when the user closes the window.So overall I would not rely on that last request before the user leaves your app. Using onWindowClosing can make things nicer but your app should also assume that a user can be gone at any time without telling you and your should deal with that situation accordingly.-- J.--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment