Skip to content

GetCookie - cWebApp

Reads a cookie key

Type: Function
Return Data Type: String

Parameters

Parameter Type Description
sName String Name of the cookie key

Syntax

Function GetCookie String sName Returns String

Call Example

Get GetCookie sName to StringVariable

Description

GetCookie reads a cookie key using its name directly from the HTTP Header. Use SetCookie to update the cookie key.

Note that SetCookie is implemented as a client-action, which makes it asynchronous and GetCookie will not return the new value until the next call arrives.