Comments on: AJAX with UIX – PrimaryClientAction for instantaneous server-based client refresh http://technology.amis.nl/2005/05/23/ajax-with-uix-primaryclientaction-for-instantaneous-server-based-client-refresh/?utm_source=rss&utm_medium=rss&utm_campaign=ajax-with-uix-primaryclientaction-for-instantaneous-server-based-client-refresh Friends of Oracle and Java Sun, 31 Aug 2014 06:57:42 +0000 hourly 1 http://wordpress.org/?v=3.9.2 By: Jaiganesh http://technology.amis.nl/2005/05/23/ajax-with-uix-primaryclientaction-for-instantaneous-server-based-client-refresh/#comment-2135 Fri, 28 Jul 2006 13:31:04 +0000 /?p=570#comment-2135 Hi,

Is there any possibility to detect that theclient had closed browser and if so then invalidating the concerned session(logout)?

I thought of this idea:

1) In all the JSP pages, while onload call a timer method written in Java along with AJAX code which uses a POST parameter to post a request value to a servlet in a time gap of 5 or 10 seconds.

2) There should be a listener servlet component to recieve the AJAX post and if the client happens to close the browser, eventually the AJAX ping will also get stops and the servlet listener would have to realize it and invalidate the session associated with.

Any idea to reach a solution for this?

Regards,

JaiGanesh.K

]]>
By: santosh http://technology.amis.nl/2005/05/23/ajax-with-uix-primaryclientaction-for-instantaneous-server-based-client-refresh/#comment-2134 Sat, 30 Jul 2005 07:36:05 +0000 /?p=570#comment-2134 can i get some tutorial based on JSP and Data Action.

thanks
santosh

]]>