XF 2.1 Any recommendation on how it's most secure and valid to logout a user externally?

Oersted

Member
Hi,
is there any recommendation on how it's most secure and valid to logout a user externally?

I mean if I have a script.php in the same folder as the Xen installed, and
what to logout a userid=2 by just executing
script.php?userid=2
then how do you think it's possible to do best maybe?



I am looking at how to probably just reuse: logoutVisitor() in
src/XF/ControllerPlugin/Login.php

I am wondering if the

Code:
        /** @var \XF\ControllerPlugin\Login $loginPlugin */
        $loginPlugin = $this->plugin('XF:Login');
        $loginPlugin->logoutVisitor();
from the src/XF/Pub/Controller/Logout.php
can be used or anything else?
 
Back
Top Bottom