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

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

	$this->connection->replace($this->getPrefix() . $sessionId, "", 0, 1);

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

	return true;
}