Session variables

getSessionProp()

Description

Read a session variable.

Usage

getSessionProp("<VARIABLE NAME>")

Example:

{% action 'how to use getSessionProp() %}
  var loggedInUsername = getSessionProp("username");
{% endaction %}

setSessionProp()

Description

Write a value into the current session.

Usage

setSessionProp("<VARIABLE NAME>", <VALUE>);

Example:

{% action 'how to use setSessionProp() %}
  setSessionProp("username", "John");
{% endaction %}