Method HttpRequestMessage() :getCookie() Foundation

Gets a cookie given its name.

Syntax
 
:getCookie( <cName> ) --> oCookie
Parameters
<nName>
A character string with the name of the cookie.
Return

:getCookie() returns a DataObject representing the specified cookie. The data object has the members outlined in the following table.

Members of the DataObject returned by :getCookie()
Name Data Type Description
name C Name of the cookie
value C Value of the cookie

Description

The method :getCookie() gets the specified cookie from the list of cookies defined for this request message. If the same cookie is defined several times (multiple cookie values), the first occurance in the cookie list is returned.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.