Good afternoon, there was a very delicate question. I have a dialogue base. Which has a vendor (Owner of the base itself or where it came from.) The question is how do I transfer the name of the vendor between my pages, the first thing that occurred to me
<input name="vendor" value="{{ vendor }}" hidden> Read it on every request
request.args.get('vendor') and redistribute further along the chain when rendering a template as a hidden field which may take a lot of code. The second sentence is to use cookies. in the app.route ("/") write a function
cookie=request.cookies.get('vendor') retrun resp.set_cookie('vendor', 'vendor.cookie.ru') if cookie is not None retrun resp.set_cookie('vendor', 'vendor.cookie.ru') else: return redirect("set_cookie") Or shove it into a global variable, it can tie the login to the system and fold the question into the session that it will be faster and then less problematic.