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;