integrate_logout hook function

Started by danielrichter, January 30, 2023, 02:52:47 PM

Previous topic - Next topic

danielrichter

I'Ve got a question regarding the integrate_logout hook.
Description for this hook says:

QuoteCalled from: LogInOut.php, LogOut(), if the user is not a guest, after unsetting some session variables, but before clearing their entry in {db_prefix}log_online. They are, technically, still listed as online when the hook is called.
Purpose: To initiate logout in integrated code.
Accepts: 1 function name.
Sends: string representing user's name

I would like to use this hook to perform the logout of the user inside an external application too, but is there a way to make sure the "online users" list is still being updated / reflects the user as offline, after logout?

Sesquipedalian

After the call to your hooked function has returned, the remaining steps of the logout process will continue. The documentation is simply telling you about the state of the system at the time when your hooked function will be called; it doesn't mean that calling your hooked function will somehow interrupt the logout process (unless your hooked function causes script execution to halt prematurely for some horrible reason).
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Advertisement: