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
string
required
[##-notation
Determine value of cookie.
- max-age
string
optional
[##-notation
Number of seconds until the cookie expires. A zero or negative number will expire the cookie immediately. Default value for
max-age
isnull
.- path
string
optional
[##-notation
A path that must exist in the requested URL, or the browser won’t send the Cookie header. Default value for
path
isnull
.
Note
For see more Information about [##-notation
,see [## Notation
Tip
For more information about cookie concept, visit MDN-Cookie.