Jump to content

Closing of Session


Kalvaitir
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...