Tries to perform a forms-based login.
If logon fails, a SecurityException error is thrown.

Syntax

Smartsite SXML CopyCode image Copy Code
login.trylogin(string userName, string password, boolean isHashed, boolean persistentCookie)

Parameters

Name Data Type Description
userName String Name of the user.
password String The password.
isHashed Boolean If set to true [is hashed].
persistentCookie Boolean If set to true, a persistent cookie will be written.

Return Value

None.
SXML