logout
logout logs out the current session. afterward, the current session will no longer be logged in
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:
logout()
Parameters:
This function does not take any parameters.
Examples
if (confirm("Are you sure you want to log out?")) {
logout()
}