code: def from_cookie_string(self, cookie_string):
          
          for key_value in cookie_string.split(';'):
              if '=' in key_value:
                  key, value = key_value.split('=', 1)
              else:
                  key = key_value
              strip_key = key.strip()
              if strip_key and strip_key.lower() not in COOKIE_ATTRIBUTE_NAMES:
                  self[strip_key] = value.strip()
docs: update self with cookie_string.