Try OpenEdge Now
skip to main content
Application Migration and Development Guide
Application Development with PAS for OpenEdge : Programming the Progress Application Server for OpenEdge : Accessing the connection ID

Accessing the connection ID

As described in ABL for programming PAS for OpenEdge procedures, OpenEdge creates a unique ID for each connection to a PAS for OpenEdge instance. For session-managed applications, there is a connection ID mechanism especially for a PAS for OpenEdge running in the unbound session-managed model. This is the SERVER-CONNECTION-ID attribute on the SESSION handle, a read-only CHARACTER attribute for which OpenEdge generates a unique value for each connection to a session-managed PAS for OpenEdge instance.
For both session-managed and session-free applications, you can also use the ClientContextId property on the Progress.Lang.OERequestInfo class to identify a single client context. This client context identifier can be used to identify a single user login session, especially for multiple PAS for OpenEdge sessions running in the session-free or unbound session-managed models. By default, OpenEdge provides a globally unique value for the ClientContextId property that can also be managed by the application across multiple server sessions.
For more information on using the SERVER-CONNECTION-ID, see Managing context for bound and unbound session-managed connections. For more information on using the ClientContextId property, see Managing client context for session-free and unbound session-managed connections.