mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
fix: #8085, fix cookie name
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user