• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/authentication/device.php
  • Класс: BitrixMainAuthenticationDevice
  • Вызов: Device::setCookie
static function setCookie(string $value): void
{
	$cookie = new WebCookie(static::COOKIE_NAME, $value, time() + 60 * 60 * 24 * 30 * 12);
	MainContext::getCurrent()->getResponse()->addCookie($cookie);
}