loginByUserID code example
Example: loginByUserID in conrete
$ui = UserInfo::getByUserName($username);
$u = $ui->getUserObject();
$userID = $u->getUserID();
User::loginByUserID($userID);
$ui = UserInfo::getByUserName($username);
$u = $ui->getUserObject();
$userID = $u->getUserID();
User::loginByUserID($userID);