How can I can set a global variable for the username of the logged-in user? At the moment i have the following code in all my controllers to get the username. I rather set it as a global variable if possible.
request.environ.get("REMOTE_USER")
I tried putting the same code in the app_globals.py file but it gave me the following error message: "No object (name: request) has been registered for this thread"