mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01: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
@ -38,6 +38,7 @@ const sessionParser = session({
|
|||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
maxAge: 24 * 60 * 60 * 1000 // in milliseconds
|
maxAge: 24 * 60 * 60 * 1000 // in milliseconds
|
||||||
},
|
},
|
||||||
|
name: 'trilium',
|
||||||
store: new FileStore({
|
store: new FileStore({
|
||||||
ttl: 30 * 24 * 3600,
|
ttl: 30 * 24 * 3600,
|
||||||
path: dataDir.TRILIUM_DATA_DIR + '/sessions'
|
path: dataDir.TRILIUM_DATA_DIR + '/sessions'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user