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

to prevent collisions with other express-session apps
This commit is contained in:
Steven Tang 2020-12-20 21:18:57 +00:00 committed by GitHub
parent 95ccfd2521
commit 015c9d2ccd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'