Skip to content

Build your personal knowledge base with Trilium Notes

rename session cookie from connect.sid to trilium (#1495)

Steven Tang015c9d2ccd0f
diff --git a/src/app.js b/src/app.js
index 3f2fdca71e..6be36630aa 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'