Skip to content

Instantly share code, notes, and snippets.

@oberhamsi
Created November 7, 2012 15:56
Show Gist options
  • Save oberhamsi/4032419 to your computer and use it in GitHub Desktop.
Save oberhamsi/4032419 to your computer and use it in GitHub Desktop.
req.session.data problem
var {Application} = require('stick');
var app = exports.app = new Application();
app.configure('route');
app.configure('session');
app.get('/', function(req) {
console.dir(req.session.data);
});
if (require.main == module) {
require('ringo/httpserver').main(module.id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment