diff options
Diffstat (limited to '')
-rw-r--r-- | routes/logout.js | 1 |
1 files changed, 1 insertions, 0 deletions
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, "/"); |