session_assign

Description

Used to store in the session a key and its value.

Syntax

{% session_assign <key> = <value> %}

Example

{% session_assign player_email = 'john@doe.net' %}
E-mail: {{ session.player_email }}

To remove a key:

{% session_assign player_email = nil %}
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top