Cookie Command¶
Use for manage, add or remove cookie to response.
Note
The cookie command inherit from CommandBase Class.
Important
The cookie command present as void command and don’t have any child elements.
name attribute in cookie command is required and must be set.
structure of cookie command¶
1 | <basis core="cookie" value="" max-age="" path="" />
|
Attributes¶
- value
stringrequired[##-notation Determine value of cookie.
- max-age
stringoptional[##-notation Number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. Default value for
max-ageisnull.- path
stringoptional[##-notation A path that must exist in the requested URL, or the browser won’t send the Cookie header. Default value for
pathisnull.
Note
For see more Information about [##-notation,see [## Notation
Tip
For more information about cookie concept, visit MDN-Cookie.