COOKIE

Returns the value of the variable passed to the function, from the cookie. Before retrieving the cookie variable value, it has to be stored by using the, “Save into Cookie” option in the Formulas tab.

Syntax

= COOKIE(value)

Parameters

Value

A cookie variable whose value is to be found. The value should be specified as a string (e.g., “var”).

Return Type

String. The function can be used in combination with other functions.

Examples

Example

Returns

= COOKIE(“lastVisit”)

Date customer last visited the page.

= COOKIE("userName")

The userName value stored in the cookie.

= COOKIE("userInfo")

The userInfo value stored in the cookie.

= COOKIE("domain")

The domain name stored in the cookie.

= ENCRYPT(COOKIE(“CustomerID”))

The encrypted version of the CustomerID stored in the cookie.

= DECRYPT(COOKIE(“MyUsername”))

The decrypted version of the cookie variable “MyUsername”.