Skip to content

Instantly share code, notes, and snippets.

@deepal
Last active February 18, 2016 18:07
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 deepal/90ee41a371036e84d154 to your computer and use it in GitHub Desktop.
Save deepal/90ee41a371036e84d154 to your computer and use it in GitHub Desktop.
nodesec-secrets-in-env
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