Raritan PX2/PX3 JSON-RPC API
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
SessionManager.idl
1 
4 module session {
5 
7  structure Session {
8  string token;
9  string username;
10  string remoteIp;
11  string clientType;
12  time creationTime;
13  int timeout;
14  int idle;
15  int userIdle;
16  };
17 
19  structure HistoryEntry {
20  time creationTime;
21  string remoteIp;
22  string clientType;
23  };
24 
49  interface SessionManager {
50 
51  constant int ERR_ACTIVE_SESSION_EXCLUSIVE_FOR_USER = 1;
52 
54  enumeration CloseReason {
58  CLOSE_REASON_FORCED_DISCONNECT
59  };
60 
73  int newSession(out Session session);
74 
82  Session getSession(in string token);
83 
91  Session getCurrentSession();
92 
98  vector<Session> getSessions();
99 
106  void closeSession(in string token, in CloseReason reason);
107 
115  void closeCurrentSession(in CloseReason reason);
116 
122  void touchSession(in string token);
123 
134  void touchCurrentSession(in boolean userActivity);
135 
141  vector<HistoryEntry> getSessionHistory();
142  };
143 
144 }
int userIdle
User idle time in seconds.
Definition: SessionManager.idl:15
CloseReason
Session close reasons
Definition: SessionManager.idl:54
string remoteIp
Session IP address.
Definition: SessionManager.idl:21
string username
Name of user owning the session.
Definition: SessionManager.idl:9
Regular logout.
Definition: SessionManager.idl:55
time creationTime
Session creation timestamp.
Definition: SessionManager.idl:12
Session timed out.
Definition: SessionManager.idl:56
string remoteIp
Session IP address.
Definition: SessionManager.idl:10
int timeout
Session timeout in seconds.
Definition: SessionManager.idl:13
Session manager interface
Definition: SessionManager.idl:49
int idle
Session idle time in seconds.
Definition: SessionManager.idl:14
Session information
Definition: SessionManager.idl:7
string clientType
Session client type.
Definition: SessionManager.idl:22
time creationTime
Session creation timestamp.
Definition: SessionManager.idl:20
Browser window was closed.
Definition: SessionManager.idl:57
string clientType
Client type.
Definition: SessionManager.idl:11
Session history entry
Definition: SessionManager.idl:19
string token
Session token to be used for authentication
Definition: SessionManager.idl:8