56 constant
int ERR_ACTIVE_SESSION_EXCLUSIVE_FOR_USER = 1;
63 CLOSE_REASON_FORCED_DISCONNECT
Session manager interface
Definition: SessionManager.idl:54
void closeSession(in int sessionId, in CloseReason reason)
Close a session identified by its token.
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.
vector< HistoryEntry > getSessionHistory()
Get previous session data for the current user.
CloseReason
Session close reasons
Definition: SessionManager.idl:59
@ CLOSE_REASON_BROWSER_CLOSED
Browser window was closed.
Definition: SessionManager.idl:62
@ CLOSE_REASON_TIMEOUT
Session timed out.
Definition: SessionManager.idl:61
@ CLOSE_REASON_LOGOUT
Regular logout.
Definition: SessionManager.idl:60
Session Management
Definition: SessionManager.idl:9
Session history entry
Definition: SessionManager.idl:24
time creationTime
Session creation timestamp (UNIX timestamp, UTC)
Definition: SessionManager.idl:25
string remoteIp
Session IP address.
Definition: SessionManager.idl:26
string clientType
Session client type.
Definition: SessionManager.idl:27
Session information
Definition: SessionManager.idl:12
string username
Name of user owning the session.
Definition: SessionManager.idl:14
int userIdle
User idle time in seconds.
Definition: SessionManager.idl:20
string clientType
Client type.
Definition: SessionManager.idl:16
int timeout
Session timeout in seconds.
Definition: SessionManager.idl:18
time creationTime
Session creation timestamp (seconds since system boot)
Definition: SessionManager.idl:17
string remoteIp
Session IP address.
Definition: SessionManager.idl:15
int sessionId
ID of the session.
Definition: SessionManager.idl:13
int idle
Session idle time in seconds.
Definition: SessionManager.idl:19