]> git.mxchange.org Git - friendica.git/commitdiff
clear cookie before session clear
authornupplaPhil <admin@philipp.info>
Mon, 6 Jan 2020 23:10:15 +0000 (00:10 +0100)
committernupplaPhil <admin@philipp.info>
Mon, 6 Jan 2020 23:11:39 +0000 (00:11 +0100)
src/DI.php
src/Module/Security/Logout.php

index e328a1fdd36fd33ab66b3c9816b88010f54b2e91..485b1b799d6848e10f54aa669a5be63efc53807c 100644 (file)
@@ -28,6 +28,7 @@ use Psr\Log\LoggerInterface;
  * @method static Core\Process process()
  * @method static Core\Session\ISession session()
  * @method static Database\Database dba()
+ * @method static Model\User\Cookie cookie()
  * @method static Model\Notify notify()
  * @method static Model\Introduction intro()
  * @method static Protocol\Activity activity()
@@ -61,6 +62,7 @@ abstract class DI
                'process'      => Core\Process::class,
                'session'      => Core\Session\ISession::class,
                'dba'          => Database\Database::class,
+               'cookie'       => Model\User\Cookie::class,
                'notify'       => Model\Notify::class,
                'intro'        => Model\Introduction::class,
                'activity'     => Protocol\Activity::class,
index abe409ca1d3aa4c9f87a234e8c1852f794f9274a..cc236bf30411cb1d46543061b890c22ea4a5d5a3 100644 (file)
@@ -6,7 +6,6 @@
 namespace Friendica\Module\Security;
 
 use Friendica\BaseModule;
-use Friendica\App\Authentication;
 use Friendica\Core\Cache;
 use Friendica\Core\Hook;
 use Friendica\Core\L10n;
@@ -34,6 +33,7 @@ class Logout extends BaseModule
                }
 
                Hook::callAll("logging_out");
+               DI::cookie()->clear();
                Session::clear();
 
                if ($visitor_home) {