Login

function Login(username: string | null, password: string | null, persistent: boolean = true, reload: boolean = true): boolean

The Login function logs a user into the server.

Refer also to the description page for the corresponding API function.

Parameter

Name

Type

Description

username

string

User name

password

string

User password

persistent [ optional ]

boolean

Defines whether the login should be persistent.

The default value is true.

reload [ optional ]

Available from version 1.12

boolean

Defines whether a reload should take place after the logout.

The default value is true.

Return value

Type

Description

void

No return value.

NuGet package: Beckhoff.TwinCAT.HMI.Functions

Login 1:

NuGet packages are available from version 1.12.

Login 2:

Available from 1.8