mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
rename session cookie from connect.sid to trilium (#1495)
to prevent collisions with other express-session apps
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user