Skip to content

Commit

Permalink
Update session cookie settings in index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitkumarpadda committed Apr 25, 2024
1 parent 34382a1 commit 4c3691d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ app.use(
secret: process.env.SESSION_SECRET,
resave: false,
saveUninitialized: true,
//cookie: { secure: true },add in production
cookie: { secure: true },
cookie: { maxAge: 1000 * 60 * 30 },
})
);
Expand Down

0 comments on commit 4c3691d

Please sign in to comment.