Jump to content

Closing of Session


Kalvaitir

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...