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