picyka Posted January 26, 2018 Share Posted January 26, 2018 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! Quote Link to comment Share on other sites More sharing options...
picyka Posted January 31, 2018 Author Share Posted January 31, 2018 Up! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 1, 2018 Share Posted February 1, 2018 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, Quote Link to comment Share on other sites More sharing options...
picyka Posted February 1, 2018 Author Share Posted February 1, 2018 does not work, but the idea was good ... it would have to be something that seems to know when the browser closes... Quote Link to comment Share on other sites More sharing options...
picyka Posted February 1, 2018 Author Share Posted February 1, 2018 Version:1.0.0 build 1424 Quote Link to comment Share on other sites More sharing options...
picyka Posted February 1, 2018 Author Share Posted February 1, 2018 if you access http:\\localhost:8077/m on the pc it works ... more on mobile no. Quote Link to comment Share on other sites More sharing options...
picyka Posted February 1, 2018 Author Share Posted February 1, 2018 look that interesting, if I close the browser tab triggers the event, only need to fire when it is closed completely ... Quote Link to comment Share on other sites More sharing options...
rgreat Posted February 2, 2018 Share Posted February 2, 2018 You could combine short session timeout with TUniTimer on main form. That way session will drop shortly after user close browser. Quote Link to comment Share on other sites More sharing options...
picyka Posted February 2, 2018 Author Share Posted February 2, 2018 what code would I put in the timer event? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 2, 2018 Share Posted February 2, 2018 Hi, does not work if you access http:\\localhost:8077/m on the pc it works ... more on mobile no. Please, can you explain a little more, which mobile device, browser are you using ? Quote Link to comment Share on other sites More sharing options...
picyka Posted February 2, 2018 Author Share Posted February 2, 2018 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 Quote Link to comment Share on other sites More sharing options...
rgreat Posted February 2, 2018 Share Posted February 2, 2018 what code would I put in the timer event? Just empty handler function is enough. Quote Link to comment Share on other sites More sharing options...
picyka Posted February 2, 2018 Author Share Posted February 2, 2018 I'll test and return. Quote Link to comment Share on other sites More sharing options...
picyka Posted February 2, 2018 Author Share Posted February 2, 2018 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? Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted September 18, 2019 Share Posted September 18, 2019 I have the same problem .. Any solution? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 19, 2019 Share Posted September 19, 2019 7 hours ago, Daha Software said: I have the same problem .. Any solution? Have you checked the above solution? Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted September 19, 2019 Share Posted September 19, 2019 9 hours ago, Sherzod said: Have you checked the above solution? does not work Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 20, 2019 Share Posted September 20, 2019 15 hours ago, Daha Software said: does not work How did you check? Give a sequence of your actions. Quote Link to comment Share on other sites More sharing options...
picyka Posted October 11, 2019 Author Share Posted October 11, 2019 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 11, 2019 Share Posted October 11, 2019 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? Quote Link to comment Share on other sites More sharing options...
picyka Posted October 12, 2019 Author Share Posted October 12, 2019 problem solved, was using or closed to destroy object, for example if close or browser only triggers ondestroy Quote Link to comment Share on other sites More sharing options...
picyka Posted October 16, 2019 Author Share Posted October 16, 2019 Any suggestions on how to solve the session problem without timeout? Quote Link to comment Share on other sites More sharing options...
picyka Posted October 17, 2019 Author Share Posted October 17, 2019 Does anyone else go through trouble? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 17, 2019 Share Posted October 17, 2019 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? Quote Link to comment Share on other sites More sharing options...
picyka Posted October 17, 2019 Author Share Posted October 17, 2019 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.