Why passport doesn't work with cookieSession()?

I am working on facebook authorization and found that passport doesn't work with cookieSession() only with session(). In first case req.user is always undefined. Is it possible to make it work?

Are you still able to reproduce this with the latest version of Express? I've seen one other report of this, but it was a while back, so my suspicion is that it was a bug in Connect that has since been addressed.

If you can reproduce it on an earlier version, what version is that?

Thanks!