Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
arrange cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlaney committed Sep 28, 2020
1 parent 1a52140 commit 55aacae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions server/src/app.es6
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ const domain = vcapConstants.BASE_URL.replace(/https?:\/\//i, '');
app.use(session({
name: 'session',
keys: new Keygrip([vcapConstants.PERMIT_SECRET], 'sha256', 'base64'),
sameSite: 'none',
maxAge: 36000,
domain
cookie: {
sameSite: 'none',
maxAge: 3600000,
secure: true,
domain
}
}));

// eslint-disable-next-line prefer-arrow-callback
Expand Down

0 comments on commit 55aacae

Please sign in to comment.