Unable to detach webpage.close

Hi all,

I would like to restrict the user not to close the web browser but prompting a message to ask for user logout. I added a close event handler in the MainPage but it does not fire when closing the web browser. MainPage is not the first page when the app loads. Signon page loads first and when successfully logged in, MainPage shows. Am I missed something?

You can not prevent a user from closing the browser window, but you can ask the browser to show a dialog when they do. Set the Session.ConfirmMessage to the message you would like to display.

Thanks Greg