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;
11 use Friendica\Core\System;
16 * @author Hypolite Petovan <hypolite@mrpetovan.com>
18 class Logout extends BaseModule
21 * @brief Process logout requests
23 public static function init()
25 Addon::callHooks("logging_out");
26 Authentication::deleteSession();
27 info(L10n::t('Logged out.') . EOL);
28 self::getApp()->internalRedirect();