mirror of
https://github.com/zadam/trilium.git
synced 2025-01-17 12:39:51 +08:00
rename session cookie from connect.sid to trilium (#1495)
to prevent collisions with other express-session apps
This commit is contained in:
parent
95ccfd2521
commit
015c9d2ccd
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue