Skip to content
Permalink
Browse files
fix: herroku session storage
  • Loading branch information
MantasMikal committed Jan 17, 2021
1 parent 2a82719 commit e4e2b523461bf9836b8c9c36f9dc8e20951870e4
Showing 1 changed file with 4 additions and 2 deletions.
@@ -35,12 +35,14 @@ app.use(function(req, res, next) {

app.use(
session({
name: "random_session",
secret: "verysecret",
resave: true,
resave: false,
saveUninitialized: true,
cookie: {
secure: false,
secure: true,
maxAge: 60000,
httpOnly: true
},
})
);

0 comments on commit e4e2b52

Please sign in to comment.