get_current_session
get_current_session Returns the current session, or creates a session if there isnt one, and returns it
Runs on: the server only. The statement that calls it runs on the server, and its result is a server-side value: the server keeps it, the device never writes it, and it is copied to the device only when a device statement reads it.
Not generally called by the user.
This function is not generally called by the diagram author's code. It is employed by the login_form element type
Format:
get_current_session()
Parameters:
This function does not take any parameters.
Returned Value:
| Type | Description |
|---|---|
| cloudsession | the returned session object |
Examples
session = get_current_session()