56 constant
int ERR_ACTIVE_SESSION_EXCLUSIVE_FOR_USER = 1;
63 CLOSE_REASON_FORCED_DISCONNECT
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.
void closeCurrentSession(in CloseReason reason)
Close the current session.
vector< Session > getSessions()
Retrieve all open sessions.
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_BROWSER_CLOSED
Browser window was closed.
@ CLOSE_REASON_TIMEOUT
Session timed out.
@ CLOSE_REASON_LOGOUT
Regular logout.
time creationTime
Session creation timestamp (UNIX timestamp, UTC)
string remoteIp
Session IP address.
string clientType
Session client type.
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.