Jump to content

OnBrowserClose Event Does Not Trigger For All Browsers


mos

Recommended Posts

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;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...