Skip to content

Commit

Permalink
do not add session id to session
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jun 29, 2022
1 parent 86ac8fc commit bd44a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = class Session {

[addDataToSession] (prevSession) {
for (const key in prevSession) {
if (!['expires', 'cookie'].includes(key)) {
if (!['expires', 'cookie', 'sessionId', 'encryptedSessionId'].includes(key)) {
this[key] = prevSession[key]
}
}
Expand Down

0 comments on commit bd44a82

Please sign in to comment.