httpCreateCookie

Availability

This routine is available starting with SIL Engine™ 4.1.0.

Syntax

httpCreateCookie(name, value)

Description

Creates an HttpCookie object.

Parameters

Parameter name

Type

Required

Description

name

string

Yes

The name of the cookie.

valuestringYesThe value of the cookie.

Return type

HttpCookie

Example

HttpRequest request;
HttpCookie cookie = httpCreateCookie("sessionId", "298zf09hf012fh2");
request.cookies += cookie;

See also