Status: Deprecated. This middleware will be removed in Connect 3.0 and will be replaced by a cookies middleware, which will use cookies and keygrip.
Parse Cookie header and populate req.cookies with an object keyed by the cookie names. Optionally you may enabled signed cookie support by passing a secret string, which assigns req.secret so it may be used by other middleware.
Cookie parser:
Status: Deprecated. This middleware will be removed in
Connect 3.0 and will be replaced by a
cookies
middleware,which will use cookies
and keygrip.
Parse Cookie header and populate
req.cookies
with an object keyed by the cookie names. Optionally
you may enabled signed cookie support by passing
a
secret
string, which assignsreq.secret
soit may be used by other middleware.
Examples:
Source