Created
September 5, 2013 10:48
-
-
Save 0xBADC0FFEE/6448629 to your computer and use it in GitHub Desktop.
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(express.session({ | |
secret:'secret', | |
maxAge: new Date(Date.now() + 3600000), | |
store: new MongoStore( | |
{db:mongoose.connection.db}, | |
function(err){ | |
console.log(err || 'connect-mongodb setup ok'); | |
}) | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment