The session module provides functions for getting information about a session
Functions
|
Function |
Parameters |
Return Value |
Description |
|---|---|---|---|
|
get_session_user |
session_id: The numerical identifier of a session |
The user id for the specified session |
Can raise the following exceptions:
|
|
get_session_info |
session_id: The numerical identifier of a session |
Returns a |
The SessionInfo object has the following attributes:
Can raise the following exception:
|
|
open_clientless_session |
user: The user logged into the session |
Returns a unique ID of the new clientless session |
Starts a clientless session on behalf of a user The session stays open until closeClientlessSession is called. Can raise the following exception:
|
|
close_clientless_session( |
|
|
Closes a clientless session
Can raise the following exception:
|
|
|
|
|
|
Classes
|
Class |
Description |
|---|---|
|
ClientlessSession |
Context manager for clientless sessions The clientless session is sent a shutdown command when the context is left. If there are still modules running in the session they first need to conclude before the session is shutdown. Example usage:
Python
|
Functions
|
Function |
Parameters |
Return Value |
Description |
|---|---|---|---|
|
get_user_context |
|
|
Gets the current user context of this jython session |
|
set_user_context |
|
|
Sets the current user context of this jython session |
Classes
|
Class |
Description |
|---|---|
|
UserContext |
Context manager for setting the user context of the current jython session Example usage:
Python
|