CURRENT-REQUEST-INFO attribute

An object reference to a Progreses.Lang.OERequestInfo class that provides information about the current client request sent to and executing on an application server session.

Note: When using the Progress Application Server (PAS) for OpenEdge, this attribute is valid on both the client and server sides.

Data type: Progress.Lang.OERequestInfo class

Access: Read-only

Applies to: SESSION system handle

The following application server code fragment retrieves the client context identifier (CCID) that has been sent with a current request from an application server client:

DEFINE VARIABLE ccid AS CHARACTER NO-UNDO.
ASSIGN
  ccid = SESSION:CURRENT-REQUEST-INFO:ClientContextId.

The bold code in the following fragment assigns a copy of the client principal in the current session:

DEFINE VARIABLE hCPIn   AS HANDLE.
DEFINE VARIABLE hCPOut  AS HANDLE.

hCPIn = SESSION:CURRENT-REQUEST-INFO:GetClientPrincipal().
SECURITY-POLICY:SET-CLIENT(hCPIn).
hCPOut = SECURITY-POLICY:GET-CLIENT().
SESSION:CURRENT-RESPONSE-INFO:SetClientPrincipal(hCPOut).

See also

GetClientPrincipal( ) method (Progress.Lang.OERequestInfo), CURRENT-RESPONSE-INFO attribute, LOCAL-VERSION-INFO attribute, REQUEST-INFO attribute, RESPONSE-INFO attribute, SetClientPrincipal( ) method