I am trying to return a response that sets a cookie for example.com and www.example.com. I was only able to set a cookie for the domain from which the request was received. Can someone point me in the right direction?
Oh! set_cookie () has a domain parameter.
response.set_cookie('name', 'value', domain='.example.com')
The problem is resolved.
Source: https://habr.com/ru/post/1415791/More articles:Make FileChooserDialog allow user to select folder / directory - pythonAssembly record for Windows x86 - assemblyPowrshell script not working if executed from c program? - cScala: avoid redundant type parameters - scalaUsing Google ProtoBuf (and a .proto file) to create a Python API library - protocol-buffersconvert age to current date - phpjQuery change cell class and update data - javascriptUSB discovery and copy *. * To a USB drive using a script package - batch-fileHow can I parse data using Symfony2? - phpAdd to clojure permanent vector map - clojureAll Articles