mos Posted June 18, 2020 Posted June 18, 2020 I have been testing OnBrowserClose and find that it doesn't trigger for all browsers e.g. Chrome. I have the following code below and need some way of setting the FAllowTerminate to True so that the session will timeout and won't remain in the session list indefinitely. I do have a Exit button on my main form which on clicking will set the FAllowTermiate to True but if the user decides to close the tab or browser then FAllowTerminate is never set to True. Is there some other way of ensuring that FAllowTerminate is always set in the above case? procedure TUniMainModule.UniGUIMainModuleSessionTimeout(ASession: TObject; var ExtendTimeOut: Integer); begin if not FAllowTerminate then ExtendTimeOut := 3600000; // 1 hour end; Quote
mos Posted June 26, 2020 Author Posted June 26, 2020 Hi Hayri, I was using 1481 and then tried 1534 and it is now working so it must have been fixed after 1481. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.