node.js - What is the difference between 'session' and 'cookieSession' middleware in Connect/Express? -
there 2 session-related middlewares bundled connect/express. difference? how choose?
i'm assuming session middleware same cookiesession middleware, store mechanism.
the session middleware implements generic session functionality in-memory storage default. allows specify other storage formats, though.
the cookiesession middleware, on other hand, implements cookie-backed storage (that is, entire session serialized cookie, rather session key. should used when session data going stay relatively small.
Comments
Post a Comment