I am using Jinja2 and Python 2.7 with App Engine.
In a request handler I would like to set a permanent variable Jinja2 variable, such that it is available for all Jinja2 templates. Specifically this is for a User object, so I always can pull out the username to display on all pages of the site when they are logged in.
I have read this question and answer: How do I access session data in Jinja2 templates (Bottle framework on app engine)?
but when I try it, the session variable does not seem to be permanent, i. e. when I browse to another template, the session variable no longer exists.
How do I set a permanent variable? And will it be independently set for each user?
Thanks for your help!