Description: Log in as different user
Syntax:
Tcl: USERLOGIN username=password
JScript: USERLOGIN("username=password");
VB Script: USERLOGIN "username=password"
Arguments: username, password
Returns: none
See Also: USERPUSH, USERPOP
Examples:
# Tcl - login user
tom, password tom
USERLOGIN tom=tom
# Tcl - login admin (no password)
USERLOGIN admin
USERLOGIN changes the current user login in ViewDAQ. The Area and Level of the user changes immediately.
Supported by screen scripts. Not supported by global scripts. In the local ViewDAQ, this change is immediate and makes a permanent change to user login.
USERLOGIN is ignored in web browser VIEW.
Note that a "restricted user" is limited to viewing displays specified during configuration through a Web Browser client. A "restricted user" login does not limit display access in a local ViewDAQ task. General users are restricted from viewing system displays.
The Web Browser Window must be closed or another Web Browser Window Opened to Login as another user. This is because the displays available to an Administrator, Power or General user all cached. The Browser Window must be closed to allow a new cache to be built appropriate to the user type.
See USERLOGOUT for an example of new user login through a web browser.
ViewDAQ supports a User Logout feature on its menu bar.