req.cookies

An object containing all of the unsigned cookies from this request (req).

Usage

  1. req.cookies;

Example

Assuming the request contained a cookie named “chocolatechip” with value “Yummy:

  1. req.cookies.chocolatechip;
  2. // "Yummy"