Jump to content

Recommended Posts

Posted

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?

Posted

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

post-1842-0-42419300-1406047439_thumb.png

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