clear cookie before session clear
This commit is contained in:
parent
e56c8dcc3c
commit
20f1ab05e6
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue