Skip to main content

i4w_getcookie

Usage

This shortcode is used to retrieve the value held in a client-side cookie. The cookie will have to have been previously set either programmatically through your own script or through the [i4w_cookie_set] shortcode.

[ELSE_getcookie] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
varThe cookie that you wish to display in place of the shortcode.NoneYes

Example

Shortcode
[i4w_getcookie var='myVAR']