Метод isTopLevelNavigation
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
278–310
~/bitrix/modulesim/lib/V2/Guest/Auth/GuestApplication.php
Исходный код
Сигнатура метода
protected static function isTopLevelNavigation(HttpRequest $request): bool
Возвращает:
bool
Описание
A request nobody navigated must not end the session: the guest page fires counter and keepalive hits of its own, and a browser prefetches a link long before the guest follows it. isAjaxRequest() goes first: it reads BX-Ajax / X-Requested-With, which the framework's own calls do send.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$request
|
HttpRequest
|
-
|
-
|