The session functions log in to Operations Center, or they cancel or close a session:
The login() function logs in to Operations Center. This function takes three arguments:
The Operations Center server’s host and port (Web) and protocol (the default is http.)
The user name and the password for the session.
A timeout, in seconds, to wait for establishing the connection.
This function returns either a valid session element or a string or exception if an error occurs. For example:
var session = formula.login( 'localhost', 80, 'http', 'admin', 'formula', 60 )
The logout() function cancels or closes a session obtained from the login() function. For example:
formula.logout( session )