Property | Description |
---|---|
name | The name of the cookie. |
value | The value of the cookie. |
domain | The domain name of the cookie; it'll be sent only to servers in this domain (for example, www.apress.com). |
maxAge | The length of time in seconds that the cookie will exist; -1 indicates that the cookie will stick around until the browser quits. |
path | Restricts the cookie to be sent only to the server when requesting uniform resource locators (URLs) from it that contain this path (for example, /companyStore). |
secure | true or false indicating whether the cookie will be sent only when connecting via HTTPS (an encrypted form of HTTP). |