def read_cookie(cls, name):
 string_cookie = os.environ.get('HTTP_COOKIE', '')
 cls.cookie = Cookie.SimpleCookie()
 cls.cookie.load(string_cookie)
 value = None
 if cls.cookie.get(name):
  value = cls.cookie[name].value
 return value

def read_cookie ( cls , name ) : string_cookie = os . environ . get ( 'HTTP_COOKIE' , '' ) cls . cookie = Cookie . SimpleCookie ( ) cls . cookie . load ( string_cookie ) value = None if cls . cookie . get ( name ) : value = cls . cookie [ name ] . value return value
use: cook .