Script: Class dw.web.Cookies

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.

See Request.getHttpCookies().

Properties

cookieCount : Number Read Only

The number of known cookies.

Constructor Summary

This class does not have a constructor, so you cannot create it directly.

Method Summary

getCookieCount() : Number

Returns the number of known cookies.

Methods inherited from class Object

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

Method Detail

getCookieCount() : Number

Returns the number of known cookies.

Returns:

the number of cookies