Hello! I have a question about Context Local in Werkzeug.
I did not really get how it works, for example, I have web application, 
webserver gevent. I need when user is logging, I need to keep in variable 
name of current logged user. Global variable is not good, because it is can 
be overwritten. Simple situation:
Jimmy is logged in, variable local.current_logged_user = 'Jimmy'
Then
Bobby is logged in, local.current_logged_user = 'Bobby'
But when I refresh the index page in Jimmy user local.current_logged_user = 
'Bobby'
As I understood it is work like thread. 

How to keep current_logged_user ?
 

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pocoo-libs/-/bxnYmgI2tYAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to