I noticed that req.session is undefined for resources but it works fine for manually added routes using app.get method
{ lastAccess: 1329521660742,
cookie:
{ path: '/',
httpOnly: true,
_expires: Sat, 18 Feb 2012 03:34:20 GMT,
originalMaxAge: 14400000 },
_csrf: 'B91I4oOdFYhs3h9PNdBsJagE' }
GET /404
response time: 20ms
memory rss: 148.00kb
memory vsize: NaNgb
heap before: 29.63mb / 107.27mb
heap after: 30.42mb / 107.30mb
undefined
GET /
response time: 9ms
memory rss: 0b
memory vsize: NaNgb
heap before: 18.28mb / 52.08mb
heap after: 18.85mb / 52.08mb
/ is set through app.resource and /404 is set through app.get
I noticed that
req.sessionis undefined for resources but it works fine for manually added routes usingapp.getmethod/is set throughapp.resourceand/404is set throughapp.get