Created
September 20, 2012 14:47
-
-
Save telen/3756363 to your computer and use it in GitHub Desktop.
Node.js(v0.9.1-pre) & express(3.0.0rc4) enable signed cookie and session
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
Node.js & express enable signed cookie and session | |
app.use(express.cookieParser(‘telen’)); | |
app.use(express.session()); | |
response.cookie('name', 'value', {maxAge: 60000, signed: true}); | |
request.signedCookies.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment