• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/session/handlers/redissessionhandler.php
  • Класс: BitrixMainSessionHandlersRedisSessionHandler
  • Вызов: RedisSessionHandler::processDestroy
public function processDestroy($sessionId): bool
{
	$isConnectionRestored = false;
	if (!$this->isConnected())
	{
		$isConnectionRestored = $this->createConnection();
	}

	if (!$this->isConnected())
	{
		return false;
	}

	$this->connection->del($this->getPrefix() . $sessionId);

	if ($isConnectionRestored)
	{
		$this->closeConnection();
	}

	return true;
}