A session represents a connection between an active client program and a client. A client program typically has one active session to a client.
A client can have multiple concurrent sessions if the client is configured as a shared-state client. A shared-state client allows multiple sessions, possibly involving clients on multiple hosts, to share the same client state, including its client ID, subscriptions, and queue. By default, each client is configured to allow only one active session. For more information about shared-state clients, see
Shared State Clients.
The following sections provide more details about these activities.