Метод severGuestSessions

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 509–524
~/bitrix/modulesim/lib/V2/Guest/GuestLinkService.php

Исходный код

PHP
private

Сигнатура метода

private function severGuestSessions(array $userIds): void

Возвращает: void

Описание

The guest's PHP session survives the kill-switch until the {@see CleanupService} sweep deactivates the user, and mobile-native paths ('/mobile/' in the im_guest_mobile scope) let a live app re-register its push token with nothing but IsAuthorized(). A logout auth action kills the session in the prolog of the guest's very next hit — before any token re-registration action runs. Rows mirror {@see UserAuthActionTable::addLogoutAction()}, batched into one multi-INSERT; addMulti() cleans the entity cache, so cached CheckAuthActions reads see the action at once.

Параметры

1
Имя Тип По умолчанию Флаги
$userIds array -
-