From 015c9d2ccd0f5922affe74a401fc6d4e40716c0e Mon Sep 17 00:00:00 2001 From: Steven Tang Date: Sun, 20 Dec 2020 21:18:57 +0000 Subject: [PATCH] rename session cookie from connect.sid to trilium (#1495) to prevent collisions with other express-session apps --- src/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.js b/src/app.js index 3f2fdca71..6be36630a 100644 --- a/src/app.js +++ b/src/app.js @@ -38,6 +38,7 @@ const sessionParser = session({ httpOnly: true, maxAge: 24 * 60 * 60 * 1000 // in milliseconds }, + name: 'trilium', store: new FileStore({ ttl: 30 * 24 * 3600, path: dataDir.TRILIUM_DATA_DIR + '/sessions'