'Get the user model from a cookie'

def _get_user_cookie(self, handler):

    encrypted_cookie = handler.get_cookie(self.cookie_name)
    if encrypted_cookie:
        return self.user_for_cookie(encrypted_cookie)
