code: def set_cookie(name, value):
      
  
      r = app.make_response(redirect(url_for("view_cookies")))
      r.set_cookie(key=name, value=value, secure=secure_cookie())
  
      return r
docs: Sets a cookie and redirects to cookie list.
      ---
      tags:
        - Cookies
      parameters:
        - in: path
          name: name
          type: string
        - in: path
          name: value
          type: string
      produces:
        - text/plain
      responses:
        200:
          description: Set cookies and redirects to cookie list.