take session instead of connect object. 

In express 4.0 you can pass the require('express-session')