Add configurable maxAge for session cookie, defaults to 30 days
This commit is contained in:
parent
d6266e4396
commit
6885f3da1c
@ -25,7 +25,8 @@ export default {
|
||||
session: {
|
||||
secret: "very_secret_not_known",
|
||||
cookie: {
|
||||
secure: false
|
||||
secure: false,
|
||||
maxAge: 30 * 24 * 3600 * 1000, // 30 days
|
||||
}
|
||||
},
|
||||
mail: {
|
||||
|
@ -22,6 +22,7 @@ export default class SessionComponent extends ApplicationComponent<void> {
|
||||
cookie: {
|
||||
httpOnly: true,
|
||||
secure: config.get('session.cookie.secure'),
|
||||
maxAge: config.get('session.cookie.maxAge'),
|
||||
},
|
||||
rolling: true,
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user