{% unset_client %}

Removes custom properties from the user client.

Syntax

{% unset_client [property1] [property2] [etc...] %}

You may also include reference variables as properties, which will be dereferenced to their property names before unsetting the client properties.

If no properties are specified, then ALL custom properties will be unset from the client

Examples

{% if client_permissions.do_not_track %}
    {% unset_client %}
{% endif %}
{% if request.query_params.reset_counters == "true" %}
    {% unset_client login_counter error_counter home_counter work_counter kitchen_counter %}
{% endif %}
{% var props = request.query_params.clearprops | split: ',' %}
{% for prop in props %}
    {% unset_client &prop %}
{% endfor %}

Developer Overview

Liquid Markup