Repository navigation
Replies: 2 comments 1 reply
|
There is no setting or env var for it. The value is a constant in the backend, Before changing it, check which version you run. Since d54ba62 (Sep 17, "measure the login window from last activity, not from login") the session uses If you still want a longer idle window, for example 30 days, edit the constant and rebuild the backend image: // backend/src/utils/sessionConfig.js
export const SESSION_IDLE_MS = 30 * 24 * 60 * 60 * 1000;docker compose build backend && docker compose up -d backendThe Redis side follows automatically: the store is If you use the prebuilt image ( |
|
In the next release, each user can choose how long they stay signed in under Settings → Security: 7, 14, 30, 60 or 90 days. Each visit starts the count again, so with 90 days you stay signed in as long as you open MailFlow at least once every 90 days. Admins can also change the default for everyone with |
Uh oh!
There was an error while loading. Please reload this page.
Hello, thank you for the great program!
I have a question.
How to increase the lifetime of session cookies. Currently the TTL is 7 days, but I would like to be able to increase it to 30 days, or even 180 days. How can I do this?
All reactions