Jump to content

Recommended Posts

Posted

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;

 

Posted

Hi Hayri,

  I was using 1481 and then tried 1534 and it is now working so it must have been fixed after 1481.

 

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...