This does not look right, as the session-store will use a different express-session instance that your express app.

The current version works around this problem by forcing the user to pass in the connect module. With express 4.0, I suppose you should pass "Session" instead of "connect" to the exported function.