Skip to content

Commit

Permalink
Merge pull request #416 from dyc3/session-expire-fix
Browse files Browse the repository at this point in the history
increase session cookie max age, fixes #415
  • Loading branch information
dyc3 authored May 12, 2021
2 parents 5bfdab1 + 762ed6e commit 228b8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ let sessionOpts = {
unset: 'keep',
cookie: {
expires: false,
maxAge: 2592000,
maxAge: 30 * 24 * 60 * 60 * 1000, // 1 month, in milliseconds
},
};
if (process.env.NODE_ENV === "production" && !process.env.OTT_HOSTNAME.includes("localhost")) {
Expand Down

0 comments on commit 228b8e9

Please sign in to comment.