How to exchange sessions in installed express applications

I have a rather complicated express application, which is divided into several auxiliary applications, which are also express applications (using app.use() ). How can I seamlessly use the same session between all parts of the application?

+7
express
04 Oct '11 at 16:19
source share
1 answer

Connect-related middleware is "self-aware" as they will not duplicate the work they have already done. For example, if you already have req.session, and both the β€œroot” application and the mounted application use session () middleware, the root application session will work and the other will be ignored. Therefore, it should work as is.

+11
04 Oct '11 at 16:25
source share



All Articles