Telegram_2021-01-16T15

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2021 > 01 > 16 >

Telegram_2021-01-16T15

Telegram link

 

2021-01-16T15:30:05

 

intraweb forms doesn't have OnClose, because they are not auto-created and stay in the ram like in a vcl app.

 

i think the closest is to look at it like an MDI app (all the app is in one form and you create and destroy your \sub-forms\ as needed).

 

depending on your case, you can use the OnDestroy, use a global var, add yourself your own Notify event, or maybe even work with TIWMonitor.

 


 

Telegram link

 

2021-01-16T15:56:14

 

If you want to detect onclose on the browser window you can register an event and intercept it so that it will send a callback to your app

 


 

Telegram link

 

2021-01-16T15:56:46

 

And timeout the session

 


 

Telegram link

 

2021-01-16T15:57:04

 

There is no sync way to detect when someone closes the browser window

 


 

Telegram link

 

2021-01-16T15:57:33

 

And no way yo understand if his pc went on suspension or lost connectivity

 


 

Telegram link

 

2021-01-16T15:57:45

 

This is why anyway you should count on the session timeout