• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/session/session.php
  • Класс: BitrixMainSessionSession
  • Вызов: Session::setName
public function setName($name): void
{
	if ($this->isActive())
	{
		throw new RuntimeException('Could not change the name of an active session');
	}

	session_name($name);
}