# web.cookie ## Function Read the request Cookie object, and also write back the Cookie status after the request is completed. ## Syntax ```bt web.cookie ``` ## Parameters No parameters. ## Return value | Type | Description | | ------ | ------ | | Object | Returns the request cookie key value object and writes back the status as the response cookie. | ## Object structure | Field | Type | Description | | ------ | ------ | ------ | | Any cookie name | String | The string value of the request cookie. The read result is Empty when the cookie does not exist. | ## Example ```bt // Cookie: sid=abc result = web.cookie.sid // Output: abc print result ``` ## Notes - After the script modifies web.cookie, the response cookie will be written back at the end of the request. - Adding or modifying fields will write back the cookie with the same name. - After deleting the existing Cookie field in the request, the cookie will expire at the end of the request.