mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
fix(session_parser): FileStore ttl should be ideally the same as session cookies maxAge
this avoids having "unused" dead session on the filesystem
This commit is contained in:
parent
4e23b5193d
commit
04827c0ce1
@ -16,7 +16,7 @@ const sessionParser = session({
|
||||
},
|
||||
name: "trilium.sid",
|
||||
store: new FileStore({
|
||||
ttl: 30 * 24 * 3600,
|
||||
ttl: config.Session.cookieMaxAge / 1000, // needs value in seconds
|
||||
path: `${dataDir.TRILIUM_DATA_DIR}/sessions`
|
||||
})
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user