Last active
February 18, 2016 18:07
-
-
Save deepal/90ee41a371036e84d154 to your computer and use it in GitHub Desktop.
nodesec-secrets-in-env
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({ | |
name: 'SESS_ID', | |
secret: process.env.EXPRESS_SESSION_SECRET, | |
resave: false, | |
saveUninitialized: true, | |
cookie: { | |
secure: true, | |
httpOnly: true | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment