Метод invalidateGuestUser

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

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

Путь к исходному файлу строки 322–349
~/bitrix/modulesim/lib/V2/Guest/Auth/AuthorizationService.php

Исходный код

PHP
public

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

public function invalidateGuestUser(int $userId): void

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

Описание

A guest lost a chat membership (relation removal is done by Chat::deleteUser). While any live link remains they only lost this chat; otherwise the session ends — self-action invalidates the current session and clears cookies, external kick kills the token and pushes userLogout. Self-action deliberately avoids Logout(): it runs inside the guest's own request, which owes a controller response, and Logout() raises main:OnAfterUserLogout — on the cloud its bitrix24 subscriber answers with LocalRedirect to OAuth and the response body is lost.

Параметры

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