summaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/logout.js1
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, "/");