X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogout.php;h=f212a894029cd6e9279e41e1dd520ef8f56c68a6;hb=2a881cc2e71b1677cc9ce98001ae3f157743e542;hp=cbfd245f302f47f276cff27f8ee1ab1e192d0459;hpb=14e7686df4250169de91c4db2912b1934cc4800f;p=friendica.git diff --git a/src/Module/Logout.php b/src/Module/Logout.php index cbfd245f30..f212a89402 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -6,10 +6,11 @@ namespace Friendica\Module; use Friendica\BaseModule; use Friendica\Core\Addon; +use Friendica\Core\Authentication; use Friendica\Core\L10n; +use Friendica\Core\System; require_once 'boot.php'; -require_once 'include/security.php'; /** * Logout module @@ -24,8 +25,8 @@ class Logout extends BaseModule public static function init() { Addon::callHooks("logging_out"); - nuke_session(); + Authentication::deleteSession(); info(L10n::t('Logged out.') . EOL); - goaway(self::getApp()->getBaseURL()); + self::getApp()->internalRedirect(); } }