From 352fdde60b2e342dd142fb47c40c3ec1d5e3460a Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 1 Nov 2022 01:46:40 +0100 Subject: Also clear browser cookie on logout --- routes/logout.js | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/logout.js') diff --git a/routes/logout.js b/routes/logout.js index a31d9fe..a92085a 100644 --- a/routes/logout.js +++ b/routes/logout.js @@ -7,6 +7,7 @@ router.use(session); router.get("/", (req, res) => { if (req.session.user !== undefined) { + res.clearCookie("JDMSessionId"); req.session.destroy(); } return res.redirect(302, "/"); -- cgit v1.2.3