core.render.html.env.session
¶
Module Contents¶
Functions¶
|
Jinja2 global: Allows templates to store variables server-side inside the session. |
|
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.
- Parameters:
render (core.render.html.default.Render) –
- 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:
render (core.render.html.default.Render) – The html-renderer instance.
name (str) – Name of the key
value (str) – Value to store with name.
- Return type:
None