Skip to main content

Is there a way to log when a user closes or exits the browser?  I am developing a system that would benefit from an audit log of system access.  I have figured out how to audit an access attempt, successful access, and closing the system via a button but I haven't figured out how to log an event if the user closes the browser before exiting the system.

Hi,


 


I don't believe there is an out-of-the box feature to achieve this. My guess is, the form will require some javascript injections to capture the browser window close event of the user. Perhaps, a different approach is prevent user from closing browser windows before completing Smartforms. Please see links below.


 


Capture the browser window close event.


https://stackoverflow.com/questions/1631959/how-to-capture-the-browser-window-close-event#1632004


 


Community post on blocking user from closing browser.


https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/is-there-anyway-to-block-user-from-closing-the-browser-before/td-p/76631/page/2


 


Reply