• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/session/legacy/lazysessionstart.php
  • Класс: BitrixMainSessionLegacyLazySessionStart
  • Вызов: LazySessionStart::start
protected function start(): void
{
	if ($this->isSessionAlreadyClosed() && !Application::getInstance()->getSession()->isAccessible())
	{
		$this->writeToLogError(
			new RuntimeException(
				"Skipped cold session start because headers have already been sent. Be aware and fix usage of session, details in trace."
			)
		);

		$GLOBALS['_SESSION'] = [];

		return;
	}

	Application::getInstance()->getSession()->start();
}