• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/session/handlers/table/usersessiontable.php
  • Класс: BitrixMainSessionHandlersTableUserSessionTable
  • Вызов: UserSessionTable::getConnectionName
static function getConnectionName()
{
	$pool = Application::getInstance()->getConnectionPool();
	$isConnectionExists = $pool->getConnection(static::CONNECTION_NAME) !== null;
	if (!$isConnectionExists)
	{
		$pool->cloneConnection(
			$pool::DEFAULT_CONNECTION_NAME,
			static::CONNECTION_NAME
		);
	}

	return static::CONNECTION_NAME;
}