Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Message after close remote session
#1
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
Reply
#2
Are you using latest IW 15? I'll need to run a test case myself to see why you are getting 404
Reply
#3
(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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)