twilson63/express-couchUser — pull request #23 by the-t-in-rtf (2014-05-01 10:43:42+00:00)
Title: Simplified session handling....

express-session will actually take care of generating the session for us, and the way that we send the cookie headers ourselves clobbers whatever session cookie the user has configured in their app. Among other things, this means the user can't control the name of the cookie, etc. upstream. It also doesn't seem to work with express 4.x.

This pull request greatly simplifies the handling by basically leaving session creation and persistence to express-session. It also gets session handling working in express 4.x.