Kalvaitir Posted July 21, 2014 Share Posted July 21, 2014 I observed that if I click on the close of the browser, the uniGUI does not end the session. The session ends when it exceeds the timeout it. Has anyone had this experience? Quote Link to comment Share on other sites More sharing options...
Marlon Nardi Posted July 21, 2014 Share Posted July 21, 2014 this topic can help you http://forums.unigui.com/index.php?/topic/2967-kill-a-session-when-browser-is-closed/?hl=sessionclosed&do=findComment&comment=13714 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 22, 2014 Administrators Share Posted July 22, 2014 UniMainModule->TerminateOnBrowserClose Quote Link to comment Share on other sites More sharing options...
indramaulanaxe Posted July 22, 2014 Share Posted July 22, 2014 Thank's Mr Farshad Quote Link to comment Share on other sites More sharing options...
Kalvaitir Posted July 22, 2014 Author Share Posted July 22, 2014 UniMainModule->TerminateOnBrowserClose Farshad, sorry I misunderstood what you wrote. TerminateOnBrowserClose is a property or what? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 22, 2014 Administrators Share Posted July 22, 2014 published in UniMainModule Quote Link to comment Share on other sites More sharing options...
Kalvaitir Posted July 22, 2014 Author Share Posted July 22, 2014 Farshad Mohajeri sorry, but I still can not understand. Do you have any examples or can give more detail? I tried to make: procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TStrings); begin if SameText(EventName,'SessionClosed') then UniSession.Terminate(); end; OR procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TStrings); begin if SameText(EventName,'SessionClosed') Then begin UniSession.Terminate(); UniSession.UniApplication.Terminate(); end; end; AND MainForm > ClientEvents > ExtEvents, I created a function that is attached: The above code does not work in Google Chrome, Internet Explorer only worked if I display the alert, if I comment the alert does not work. I'm checking sessions on localhost: 8077/server Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 22, 2014 Administrators Share Posted July 22, 2014 Whats yr unigui version? Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 22, 2014 Administrators Share Posted July 22, 2014 Simply go to UniMainModule and set TerminateOnBrowserClose -> true. Quote Link to comment Share on other sites More sharing options...
Kalvaitir Posted July 23, 2014 Author Share Posted July 23, 2014 Hello Farshad! My UniGUIVersion 0.95.0.1046 I should be using different version because my not has TerminateOnBrowserClose. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 23, 2014 Administrators Share Posted July 23, 2014 Current version is 0.96 Quote Link to comment Share on other sites More sharing options...
Kalvaitir Posted July 23, 2014 Author Share Posted July 23, 2014 How do I donwload this version? Downloads only appears in 'uniGUI Version 0.95' and has no more file. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 23, 2014 Administrators Share Posted July 23, 2014 Please read the 0.96 thread. 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.