Message after close remote session - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Message after close remote session (/thread-2871.html) |
Message after close remote session - staff@ergosoft.it - 09-21-2022 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 RE: Message after close remote session - Alexandre Machado - 09-22-2022 Are you using latest IW 15? I'll need to run a test case myself to see why you are getting 404 RE: Message after close remote session - staff@ergosoft.it - 09-23-2022 (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 |