Skip to content

Commit

Permalink
Fixed cookie-sessions example
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 18, 2012
1 parent 79ce6ed commit ba7bcbb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/cookie-sessions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ var express = require('../../');

var app = module.exports = express();

// ignore GET /favicon.ico
app.use(express.favicon());

// pass a secret to cookieParser() for signed cookies
app.use(express.cookieParser('manny is cool'));

// add req.session cookie support
app.use(express.cookieSessions());
app.use(express.cookieSession());

// do something with the session
app.use(count);
Expand Down

0 comments on commit ba7bcbb

Please sign in to comment.