Skip to content

Latest commit

 

History

History
15 lines (7 loc) · 390 Bytes

action_session_set.rst

File metadata and controls

15 lines (7 loc) · 390 Bytes

Set a session variable.

Example:

{% button action={session_set key="foo" value="bar"} action={reload} %}

This sets the session variable "foo" to the value "bar", and then reloads the page. In your templates, you can use model-session to retrieve this value again:

{{ m.session.foo }}

key and value are both required values.