From dec157d606107e411257cd37327cae66883044a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 17 Dec 2019 08:10:21 -0500 Subject: [PATCH] fix: #8085, fix cookie name --- src/controllers/authentication.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index aa1683305c..56a0a11f20 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -419,7 +419,7 @@ authenticationController.logout = async function (req, res, next) { req.logout(); await destroyAsync(req); - res.clearCookie('express.sid', { + res.clearCookie(nconf.get('sessionKey'), { path: nconf.get('relative_path'), }); req.uid = 0;