Created
January 10, 2013 01:23
-
-
Save MACSkeptic/4498607 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.static(path.join(__dirname, 'public'))); | |
app.use(express.cookieParser()); | |
app.use(express.session({cookie: {path: '/', maxAge: null}, secret: 'fluffy unicorn'})); | |
app.use(app.router); |
This file contains hidden or 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
exports.myRoute = function (req, res) { | |
req.session.identification_token = 'token'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment