Previous Next

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 AppServer agent. This attribute only has meaning for a session running on an AppServer agent.
Note:
Data type:
Access:
Applies to:
The following AppServer code fragment retrieves the client context identifier (CCID) that has been sent with a current request from an AppServer 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:

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.