|
<< Click to Display Table of Contents >> Navigation: Forum > Message after close remote session |
09-21-2022, 04:34 PM:
Hi,
I need to limit sessions for my IWApplication
I have two sessions A and B ... from session B I want to close session A
I found this procedure from a previous thread that seems to work correctly:
//**********************************************************************
procedure TFMain.TerminateSession(const AAppId: string);
var
lApp: TIWApplication;
lExpired, lLocked: Boolean;
begin
lApp := gSessions.LookupAndLock(AAppId, lExpired, lLocked);
if Assigned(lApp) and not lExpired then
begin
try
lApp.Terminate('Sessione Terminata !');
finally
lApp.Unlock;
end;
end;
end;
//*********************************************************************
I need to communicate a message to the user of session A
if they are in the main form the message included as a parameter seems to work
if the user is in a window inside my app I get an intraweb (404) error message (?)
how can i solve?
thanks
Alessandro Romano
09-22-2022, 09:31 PM:
Are you using latest IW 15? I'll need to run a test case myself to see why you are getting 404
09-23-2022, 06:42 AM:
(09-22-2022, 09:31 PM)Alexandre Machado Wrote: [ -> ]Are you using latest IW 15? I'll need to run a test case myself to see why you are getting 404
Hi Alexandre,
I use 15.2.49 ....
I just need to tell the user that the session is closed ....
thanks
Alessandro Romano