Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created January 29, 2018 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/200ed52cac8bc807757fc0e6449378f1 to your computer and use it in GitHub Desktop.
Save dance2die/200ed52cac8bc807757fc0e6449378f1 to your computer and use it in GitHub Desktop.
expression session middleware setup
app.use(
session({
secret: "some secret",
resave: true,
saveUninitialized: true,
cookie: {
secure: true
}
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment