login Function

Creates a new user session.

Summary

ElementFunction
ReturnsObject|Boolean

Arguments

usernameString[required] The username of the user.
passwordString[required] The password of the user.
redirectStringRedirects the client to this URL if specified.

Example

$this->login('jameswatts','12345');
CodeMessageLineFile
2count(): Parameter must be an array or an object that implements Countable224/home2/ptorg/public_html/pagetype/content/pages/en/docml.viewer.php