Created
January 29, 2018 20:36
-
-
Save dance2die/200ed52cac8bc807757fc0e6449378f1 to your computer and use it in GitHub Desktop.
expression session middleware setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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