browser or tab close listner?

asked 2014-12-18 02:13:40 +0800

suresh89 gravatar image suresh89

i'm using zk7.0.2 what my doubt is i want to maintain the login and logout history in db table, in the button click event i can insert but when the browser close or tab close i canot insert the logout time...

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-18 08:40:00 +0800

Darksu gravatar image Darksu
1991 1 4

Hello suresh89,

You can find a very good tutorial on how to handle a session/desktop cleanup at the following url:


Keep in mind that you may have to make some small modifications for it to work based on your requirements.

Best Regards,


link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2014-12-18 02:13:40 +0800

Seen: 10 times

Last updated: Dec 18 '14