7 var cookieSession = require('cookie-session');
8 var express = require('../../');
10 var app = module.exports = express();
12 // add req.session cookie support
13 app.use(cookieSession({ secret: 'manny is cool' }));
15 // do something with the session
16 app.get('/', function (req, res) {
17 req.session.count = (req.session.count || 0) + 1
18 res.send('viewed ' + req.session.count + ' times\n')
21 /* istanbul ignore next */
24 console.log('Express started on port 3000');