Session manager interface
void closeSession(in int sessionId, in CloseReason reason)
Close a session identified by its token.
vector< HistoryEntry > getSessionHistory()
Get previous session data for the current user.
constant int ERR_NO_SUCH_SESSION
Session for provided data could not be found.
void closeCurrentSession(in CloseReason reason)
Close the current session.
vector< Session > getSessions()
Retrieve all open sessions.
int getSessionForCcSessionData(in string sessionId, in string sessionKey, out Session session, out string token)
Retrieve an existing session using CC-SG provided session data.
constant int ERR_ACTIVE_SESSION_EXCLUSIVE_FOR_USER
Session creation denied due to single login limitation.
Session getCurrentSession()
Retrieve current session information.
int newSession(out Session session, out string token)
Open a new session.
void touchCurrentSession(in boolean userActivity)
Reset the current session's idle timer.
CloseReason
Session close reasons
@ CLOSE_REASON_FORCED_DISCONNECT
Session was forcibly closed.
@ CLOSE_REASON_BROWSER_CLOSED
Browser window was closed.
@ CLOSE_REASON_TIMEOUT
Session timed out.
@ CLOSE_REASON_LOGOUT
Regular logout.
Common base for all events.
time creationTime
Session creation timestamp (UNIX timestamp, UTC)
string remoteIp
Session IP address.
string clientType
Session client type.
Event: Session was closed.
int sessionId
ID of the session.
string username
Name of user owning the session.
CloseReason reason
close reason
string remoteIp
Session IP address.
Event: Session was created.
string remoteIp
Session IP address.
string username
Name of user owning the session.
int sessionId
ID of the session.
string username
Name of user owning the session.
int userIdle
User idle time in seconds.
string clientType
Client type.
int timeout
Session timeout in seconds.
time creationTime
Session creation timestamp (seconds since system boot)
string remoteIp
Session IP address.
int sessionId
ID of the session.
int idle
Session idle time in seconds.