Jump to content

start procedure in other session???


erich.wanker

Recommended Posts

Hello,

 

how can i start a procedure in other session?

 

 

 

i can change a string-value of a other session with following code, and every 2 minutes (uniTimer) i test, if the value has changed - but i want to do this without timer ????

 

 

i send ( starts a new session.. ) a parameter  ... myuniGUI.dll?write_to_session=handy_user_id&value=handy_name

begin
    // Suche Session und starte Suche
        ASessionList := UniServerModule.SessionManager.Sessions.SessionList; //  .SessionList.  ist;//  .LockList;
          try
            for I := 0 to ASessionList.Count -1 do
            begin
              USession := TUniGUISession(ASessionList[i]);
              M := USession.UniMainModule as TUniMainModule;
                 if UniApplication.UniSession.SessionID <> USession.SessionId  then   // Do not close my OWN Session
                 begin
                    if M.benutzernummer = handy_user_id then
                    begin
                          M.syn_name   :=handy_name;

                    end;
                 end;
             end;
          finally
             uniapplication.terminate;   // UniServerModule.SessionManager.Sessions.SessionList.UnlockList;
          end;
end;

i tried to create a public procedure in uniMainModule and tried to handle it like above code ( handy_user_id and handy_name are public variables in uniMainModule..)  - but doenst work...

 

Any ideas what i can do?

 

Erich

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.

×
×
  • Create New...