Sm_AgentApi_Session_t
This structure defines information about the user's session.
casso127
This structure defines information about the user's session.
Syntax
This structure has the following format:
typedef struct Sm_AgentApi_Session_s{long nReason;long nIdleTimeout;long nMaxTimeout;long nCurrentServerTime;long nSessionStartTime;long nSessionLastTime;char lpszSessionId[SM_AGENTAPI_SIZE_OID];char lpszSessionSpec[SM_AGENTAPI_SIZE_SESSIONSPEC];} Sm_AgentApi_Session_t;
Parameters
This structure has the following parameters:
- nReasonAdditional status code: explains the reason for failed authentication or authorization, or is passed in the event that results from a successful invocation of Sm_AgentApi_Logout(). Defined in SmApi.h.
- nIdleTimeoutMaximum amount of time a session can be valid without the user accessing a resource before the agent should challenge the user to re-authenticate, defined in seconds.
- nMaxTimeoutMaximum amount of time a user session can be active before the agent challenges the user to re-authenticate, defined in seconds.
- nCurrentServerTimeCurrent time (in GMT) set on the Policy Server.
- nSessionStartTimeServer time (in GMT) when the session started.
- nSessionLastTimeServer time (in GMT) when the session was last seen by the Policy Server.
- lpszSessionIdAn opaque value returned to identify the session.
- lpszSessionSpecAn opaque value returned to identify the session, which represents the session specification.