How is the \Magento\Security\Model\ResourceModel\AdminSessionInfo\Collection::updateActiveSessionsStatus() implemented and used?

Context: How is the \Magento\Security\Model\ResourceModel\AdminSessionInfo::updateStatusByUserId() implemented and used?

Implementation

app/code/Magento/Security/Model/ResourceModel/AdminSessionInfo/Collection.php

/**
 * Update active sessions status except a specific one
 *
 * @param int $status
 * @param int $userId
 * @param string $sessionIdToExclude
 * @param int $updateOlderThen
 * @return int The number of affected rows.
 */
public function updateActiveSessionsStatus(
	$status,
	$userId,
	$sessionIdToExclude,
	$updateOlderThen = null
) {
	return $this->getResource()->updateStatusByUserId(
		$status,
		$userId,
		[\Magento\Security\Model\AdminSessionInfo::LOGGED_IN],
		[$sessionIdToExclude],
		$updateOlderThen
	);
}

The sole usage

Details: How is the \Magento\Security\Model\AdminSessionsManager::processLogin() implemented and used?

See also: