I'm thinking about setting a global value in python (example below) loosely based on this article: Using global variables in a function other than the one that created them
#get a variable; set global variable
class Home(webapp2.RequestHandler):
  def get(self):
    #use OAuth2 to get a variable (example UserId = 1234567890)
    #set the UserId here
    global userId
#use global variable
class Submit(webapp2.RequestHandler):
  def post(self):
    #Do something with userId 1234567890
Problem/Not sure what happens (numbers indicate chronological order):
- UserId 1234567890 goes to class Home
- UserId 5555555555 (different computer) goes to class Home
- UserId 1234567890 submits something class Submit(e.g. tries to store to database: UserId=1234567890; Comment=hi)
???. Will it store as UserId=1234567890; Comment = hi OR AS UserId =5555555555; Comment=hi)
 
     
    