Logging into Sessions
- Last UpdatedNov 06, 2025
- 1 minute read
After you have started a session, you need to log one or more users into the session.
The aaFactMES.ClientSession object can manage multiple users logged into a session at once, but there will only every be one user that is the current user for which commands are being executed.
All commands must be executed for a user, and most commands must be executed for an entity. If you are using .NET controls in your application, they can be set up to log the user into the MES either by using the current InTouch user or by prompting the user to login.
You can also write script to log a user in. If you know the user's user ID and password, you can call the Login method in aaFactMES.aaClientSession to directly login the user or you can call the LoginWithDialog method in aaFactMES.aaClientSession to open the login dialog box.
For an example, see the sample Init script in Starting Sessions.