Jump to content

Close browser on mobile phone not close session


picyka

Recommended Posts

When closing the browser by the mobile is not dying the session, the property TerminatedOnBrowserClose is true, it is a hybrid application
in the computer works normal, someone went through this?
 
using the Google Translate!
 

 

Link to comment
Share on other sites

  • Replies 53
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

Can you check this solution for now ?!:

 

1. MainmForm -> ClientEvents -> UniEvents -> function window.beforeInit:

function window.beforeInit(sender, config)
{
    Ext.onReady(function() {
        window.onunload = window.onbeforeunload = function() {
            ajaxRequest(sender, 'closed', [] );
        };
    });
}

2. MainmForm -> OnAjaxEvent:

procedure TMainmForm.UnimFormAjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
begin
  if EventName = 'closed' then
    UniSession.Terminate();
  
end;

Best regards,

Link to comment
Share on other sites

Estou usando o Android e o IOS no Android. Eu uso o safari cromo e IOS, nos telefones celulares que eu indiquei para fazer um atalho do sistema na área de trabalho do celular, o intaum é sinônimo de um aplicativo nativo, quando o usuário fecha a navegação não morre na sessão imediatamente

 

 

você pode monitorar sessões aqui

 

 

 

Link to comment
Share on other sites

DevSulAssist.dll: 00000EE4: 19:18:27 [HttpExtensionProc[172.68.26.109]]:EUniSessionException : Sessão inválida ou expirou! : Addr: $01C522FF
DevSulAssist.dll: 00000F4C: 19:19:34 [TUniThreadTimer.OnTimer]:EAccessViolation : Access violation at address 01C505E9 in module 'DevSulAssist.dll'. Read of address 00000000 : Addr: $01C505E9
 
It even works ... I hope this is improved internally, because on the desktop the TerminateOnBrowserClose property works very well.

another situation when it is accessed from a cell phone could decrease session time, can I do this in runtime?
Link to comment
Share on other sites

  • 1 year later...
  • 3 weeks later...

I have a problem with that, I have form main, and 2 more forms

in main you call form1

form1 creates a TStringList and calls form2 passing StringList

when closing the browser (safari), it only destroys form2, form1 does not destroy, thus generating a memory leak from TStringList

Unigui Mobile.

 

Link to comment
Share on other sites

7 minutes ago, picyka said:

I have a problem with that, I have form main, and 2 more forms

in main you call form1

form1 creates a TStringList and calls form2 passing StringList

when closing the browser (safari), it only destroys form2, form1 does not destroy, thus generating a memory leak from TStringList

Unigui Mobile.

Can you please make a simple testcase for this and attach here or send to the support portal?

Link to comment
Share on other sites

9 minutes ago, picyka said:

Does anyone else go through trouble?

 

On 10/11/2019 at 3:47 PM, Sherzod said:

Can you please make a simple testcase for this and attach here or send to the support portal?

 

On 10/11/2019 at 3:38 PM, picyka said:

when closing the browser (safari), it only destroys form2, form1 does not destroy, thus generating a memory leak from TStringList

Unigui Mobile.

Can you please check this on other mobile browsers too?

Link to comment
Share on other sites

My only problem today is when you close the browser on a mobile device, I already tested on safari, Chrome, FireFox, remembering that this only happens on mobile, you close the browser and the session does not die.

xxxxxxxxxxx

You can access this link by phone and close the browser, you will realize that the session will only die after it expires

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...