The set
function is established to set data to a cookie.
cookie.set("USER_ID", "Wang");
Calling | Returning |
---|---|
cookie. set ( key, value ) |
void |
Parameters | Type | Description |
---|---|---|
key |
String |
To identify the cookie info. |
value |
String |
The info to set into the cookie. |