modal object open at session timeout


I’ve set in session open event the following istruction:


so, after 10 minutes it should close. but if I have a modal window open (for example a dialog with yes/no buttons) I get an error when timeout comes.

How can I close everything automatically and then timeout the session???

Just close the dialog in the TimeOut event, then close session.

ok michel, but I don’t know if the dialog (there are many ones) is open or not when timeout occurs…

exists a function like

if open mydialog then


if mydialog <> nil then mydialog.close end if

I’ve the timeout event in the session object, while the dialogs that I need to check are called from webpages, so I get errors on compile

What errors ?