clear cookie before session clear

This commit is contained in:
nupplaPhil 2020-01-07 00:10:15 +01:00
parent e56c8dcc3c
commit 20f1ab05e6
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
2 changed files with 3 additions and 1 deletions

View 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,

View 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) {