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

Popular posts from this blog

python - cx_oracle unable to find Oracle Client -

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -