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: core.render.html.default.Render) Dict ¶
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.
- core.render.html.env.session.setSession(render: core.render.html.default.Render, name: str, value: str) None ¶
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 – The html-renderer instance.
name – Name of the key
value – Value to store with name.