X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FLogout.php;h=f212a894029cd6e9279e41e1dd520ef8f56c68a6;hb=2a881cc2e71b1677cc9ce98001ae3f157743e542;hp=7c5391a6ba9bd7df9869a33abfb2b8a7e8c5ad06;hpb=c845415a99ebc348103815a7b2c55b15c75cdd24;p=friendica.git diff --git a/src/Module/Logout.php b/src/Module/Logout.php index 7c5391a6ba..f212a89402 100644 --- a/src/Module/Logout.php +++ b/src/Module/Logout.php @@ -6,15 +6,16 @@ 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 * - * @author Hypolite Petovan mrpetovan@gmail.com + * @author Hypolite Petovan */ class Logout extends BaseModule { @@ -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()->get_baseurl()); + self::getApp()->internalRedirect(); } }