Class Cookies
The class provides an index and associative array like access to the Cookies of the current request. Cookies can be retrieved by calling dw.system.Request.getHttpCookies().
Note: this class allows access to sensitive security-related data. Pay special attention to PCI DSS v3. requirements 2, 4, and 12.
| Property | Description |
|---|---|
cookieCount: Number (read-only) | Returns the number of known cookies. |
This class does not have a constructor, so you cannot create it directly.
| Method | Description |
|---|---|
| getCookieCount() | Returns the number of known cookies. |
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- cookieCount: Number
(read-only) Returns the number of known cookies.
- getCookieCount(): Number
Returns the number of known cookies.
Returns:
- the number of cookies