Comments on: AJAX with UIX – PrimaryClientAction for instantaneous server-based client refresh Friends of Oracle and Java Wed, 08 Jul 2015 07:37:03 +0000 hourly 1 By: Jaiganesh 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?



By: santosh Sat, 30 Jul 2005 07:36:05 +0000 /?p=570#comment-2134 can i get some tutorial based on JSP and Data Action.