Jump to content

Version 1.90.0.1496 MainModule OnBrowserClose event is not fired in Chrome and Edge.


Cy.Kevin.C

Recommended Posts

Hi, 

 I tried to capture OnBrowseClose event and release user resources just in case when user does not press logout button but just close browser directly.

However, I noticed the event is not fired in Chrome and Edge. I searched the forum and seems the suggestion is to upgrade uniGUI to the newest version.

I'm currently using uniGUI version 1.90.0.1496 but the problem seems still exists.

Any possible solution? Thank you.

Link to comment
Share on other sites

On 3/30/2021 at 11:26 PM, Cy.Kevin.C said:

Hi, 

 I tried to capture OnBrowseClose event and release user resources just in case when user does not press logout button but just close browser directly.

However, I noticed the event is not fired in Chrome and Edge. I searched the forum and seems the suggestion is to upgrade uniGUI to the newest version.

I'm currently using uniGUI version 1.90.0.1496 but the problem seems still exists.

Any possible solution? Thank you.

Hi

Can you update your email address?

 

Link to comment
Share on other sites

this is an old problem, the only reliable event to capture completion of the system, and in the
TUniMainModule.UniGUIMainModuleDestroy

however, in this event, you no longer have access to the mainmodule components and objects.

I did it like this:

When I access my application, I save the connection data in a table with the section id, no destroy, and re-connect to the database and clear the connection data.

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