Skip to content

Instantly share code, notes, and snippets.

bjdixon / app.js
Created Aug 30, 2014 — forked from tj/app.js
cookie based sessions using express
View app.js
var express = require('express')
, cookieSessions = require('./cookie-sessions');
var app = express();
app.use(express.cookieParser('manny is cool'));
app.get('/', function(req, res){
req.session.count = req.session.count || 0;
You can’t perform that action at this time.