core.render.html.env.session

Module Contents

Functions

getSession(render)

Jinja2 global: Allows templates to store variables server-side inside the session.

setSession(render, name, value)

Jinja2 global: Allows templates to store variables on server-side inside the session.

core.render.html.env.session.getSession(render)

Jinja2 global: Allows templates to store variables server-side inside the session.

Note: This is done in a separated part of the session for security reasons.

Returns

A dictionary of session variables.

Return type

dict

core.render.html.env.session.setSession(render, name, value)

Jinja2 global: Allows templates to store variables on server-side inside the session.

Note: This is done in a separated part of the session for security reasons.

Parameters
  • name (str) – Name of the key

  • value (any) – Value to store with name.