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.

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()