3 * @file src/Module/Logout.php
5 namespace Friendica\Module;
7 use Friendica\BaseModule;
8 use Friendica\Core\Addon;
9 use Friendica\Core\Authentication;
10 use Friendica\Core\L10n;
12 require_once 'boot.php';
13 require_once 'include/security.php';
18 * @author Hypolite Petovan <hypolite@mrpetovan.com>
20 class Logout extends BaseModule
23 * @brief Process logout requests
25 public static function init()
27 Addon::callHooks("logging_out");
28 Authentication::nuke_session();
29 info(L10n::t('Logged out.') . EOL);
30 goaway(self::getApp()->getBaseURL());