Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 363 Bytes
section
h3(id='cookieParser') cookieParser()
p.
Parses the Cookie header field and populates <code>req.cookies</code>
with an object keyed by the cookie names. Optionally you may enabled
signed cookie support by passing a <code>secret</code> string.
+js.
app.use(express.cookieParser());
app.use(express.cookieParser('some secret'));
Jump to Line
Something went wrong with that request. Please try again.