The website I'm working on has 5 domains (two top level and 3 subs, not including www). I need to limit the cookie that the site creates to only work on 4 of the domains.
I have found from here that in Drupal 8 cookies are defined in the services.yml file using this:
parameters: session.storage.options: cookie_domain: '.domain.com'
But I'm unsure how I can add multiple domains. Is it as simple as something like this?
cookie_domain: 'www.domain1.com'; 'domain1.com'; 'sub1.domain.com'; 'sub2.domain.com'