I have a user plugin which performs some tasks and then logs the user out using $app->logout($userID, []);
.
This is intentional and part of the plugin's functionality, and works well if no other plugins are installed.
However, it is causing problems as it interferes with other user plugins that are installed.
With the logout()
call, Joomla clears the session, redirects to the site home page and exits the program. This happens immediately; the program flow does not return to the plugin that called logout()
.
This means that any other user plugins that are set to run after this one are not being run.
Is there a way to tell Joomla from within my plugin that I want to log the user out at the end of the current page load, rather than immediately as per the logout()
method that we're using now?
Thank you.