web.cookie

web.cookie

web.cookie

Function

Read the request Cookie object, and also write back the Cookie status after the request is completed.

Syntax

Parameters

No parameters.

Return value

TypeDescription
ObjectReturns the request cookie key value object and writes back the status as the response cookie.

Object structure

FieldTypeDescription
Any cookie nameStringThe string value of the request cookie. The read result is Empty when the cookie does not exist.

Example

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.