Kalvaitir Posted July 21, 2014 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
Marlon Nardi Posted July 21, 2014 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
Administrators Farshad Mohajeri Posted July 22, 2014 Administrators Posted July 22, 2014 UniMainModule->TerminateOnBrowserClose Quote
Kalvaitir Posted July 22, 2014 Author Posted July 22, 2014 UniMainModule->TerminateOnBrowserClose Farshad, sorry I misunderstood what you wrote. TerminateOnBrowserClose is a property or what? Quote
Administrators Farshad Mohajeri Posted July 22, 2014 Administrators Posted July 22, 2014 published in UniMainModule Quote
Kalvaitir Posted July 22, 2014 Author 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
Administrators Farshad Mohajeri Posted July 22, 2014 Administrators Posted July 22, 2014 Whats yr unigui version? Quote
Administrators Farshad Mohajeri Posted July 22, 2014 Administrators Posted July 22, 2014 Simply go to UniMainModule and set TerminateOnBrowserClose -> true. Quote
Kalvaitir Posted July 23, 2014 Author Posted July 23, 2014 Hello Farshad! My UniGUIVersion 0.95.0.1046 I should be using different version because my not has TerminateOnBrowserClose. Quote
Administrators Farshad Mohajeri Posted July 23, 2014 Administrators Posted July 23, 2014 Current version is 0.96 Quote
Kalvaitir Posted July 23, 2014 Author Posted July 23, 2014 How do I donwload this version? Downloads only appears in 'uniGUI Version 0.95' and has no more file. Quote
Administrators Farshad Mohajeri Posted July 23, 2014 Administrators Posted July 23, 2014 Please read the 0.96 thread. Quote
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.