• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/session/debugger.php
  • Класс: BitrixMainSessionDebugger
  • Вызов: Debugger::addHeader
protected function addHeader(string $category, string $value): void
{
	$context = Context::getCurrent();
	if (!($context instanceof Context))
	{
		return;
	}

	if ($this->mode & self::TO_HEADER)
	{
		if ($this->shouldEncryptValue())
		{
			$value = $this->encryptValue($value);
		}

		$response = $context->getResponse();
		$response->addHeader("X-Session-{$category}", $value);
	}
}