3 * @file src/Module/Logout.php
6 namespace Friendica\Module;
8 use Friendica\BaseModule;
9 use Friendica\Core\Authentication;
10 use Friendica\Core\Hook;
11 use Friendica\Core\L10n;
16 * @author Hypolite Petovan <hypolite@mrpetovan.com>
18 class Logout extends BaseModule
21 * @brief Process logout requests
23 public static function init()
25 Hook::callAll("logging_out");
26 Authentication::deleteSession();
27 info(L10n::t('Logged out.') . EOL);
28 self::getApp()->internalRedirect();