adelura/socket.io-express-solution — pull request #1 by SystemParadox (2014-08-28 09:50:20+00:00)
Title: Update app.js

- Fixed order of middleware (session is required before index is served or the cookie is not set in time)
- Fix cookie parsing: use `cookieParser.signedCookies(cookie.parse(headers));` or `cookieParser.signedCookie(cookie.parse(header).sid);`.
- Better error handling
- Must call next() when session is retrieved