-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi there,
I'm trying to use a DesktopClean in my zk.xml in order to perform cleanup when the user closes the current browser window. In fact I'd rather be able to specify some cleanup code via Clients.confirmClose, but it's unfortunately impossible. I tried then to use DesktopClean, but quite as a surprise it seems not to be invoked when the browser window is closed, it only works if the user reloads the page or I redirect him to another url upon his pressing some button or link.
Is there any way to achieve the desired effect?
With kind regards
César Varona
The behavior change from browser to browser so it is not a good idea to "expect" a "real time" desktop clean up. e.g. Opera and Safari will not call DesktopClean "immediately" even when you press F5 or visit to another URL. FF works on F5 and change URL but not when close the browser window.
However, the DesktopCleanup will be "finally" called when the ZK engine "kick" inactive desktops out the internal session cache.
I think you're right, even with the same browser I'm experiencing different behaviours (sometimes DesktopCleanup gets actually invoked upon closing the browser window, sometimes not).
Thanks for taking the time to research this issue all the same
With kind regards
César Varona
Asked: 2008-12-14 16:14:28 +0800
Seen: 454 times
Last updated: Dec 15 '08