Back to Sails

`req.cookies`

docs/reference/req/req.cookies.md

12.12.2000458 B
Original Source

req.cookies

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

Usage

usage
req.cookies;

Example

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

javascript
req.cookies.chocolatechip;
// "Yummy"
<docmeta name="displayName" value="req.cookies"> <docmeta name="pageType" value="property">