ISession_Overview
The session object is used to establish a connection between a QWS3270 session and your application, to break the connection, to send keystrokes to the session, and to retrieve information about the session state (keyboard state, session updates and busy states).
Some functions in this and other interfaces require that you are connected to a session before calling that function. Â Use the ISession:Connect function to establish this connection. Â When you are finished with a session, or when you want to connect to a different session, you can use the ISession:Disconnect method to break the connection to a session.
Applications should always disconnect from a session before exiting.