$.udb.setLoginStatus()
note
This article is about the setLoginStatus() function of the udb object.
$.udb.setLoginStatus()
Changes the login status of the application.
Syntax
$.udb.setLoginStatus(*newStatus*)
*setLoginStatus* ::= { true | [false] }
The parameter newStatus is a boolean value that determines the new login status. If set to false, it will cause the application to time out and show the login page afterwards. The default value (when not passing a new value) is also false.
Example
if (!credentialsValid)
$.udb.setLoginStatus(false);