JSReqCookie


A ReqCookie represents a request cookie. It is a simple object containing only two properties. When read as a string it returns the full Cookie:

CookieName=Cookie Value

It may also be assigned to as a string; in which case the name will be everything up to the first equals sign, and the value everything after that. The name and value are not checked for invalid characters (such as newlines) - that is the user's responsibility.

Properties

name

The cookie name.

value

The cookie value

Example

// Set the cookie value
cookie.value = "New value";
// Set the entire cookie
cookie = "New-Name=New value";