login_session
login_session Logs in a session. Returns a structure containing info about the login operation.
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 is not generally called by user. It is employed by the login_form element type.
Format:
login_session(session,username,password)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| session | cloudsession | The session to affect. this is a "cloudsession" object |
| username user | string | id of the user |
| password | string | entered password |
Returned Value:
| Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| structure | with components :
|
Examples
info = login_session(session,username,password)