Share session cookie between subdomains

Hi,
In order to share session cookies between subdomains I want to set a cookie like

Set-Cookie: name=value; domain=mydomain.com

In which directory in Cuba should I write this configuration?. I use tomcat 9 and Cuba 7.15

Thank you

Hi,
It is an application server’s setting.

In Tomcat cookie comain setting can be set in the context.xml file:

Hi,
Thank you for your reply. I edited

/tomcat/conf/context.xml

<Context sessionCookieName="appSessionId" sessionCookieDomain="mydomain.com" sessionCookiePath="/">

and work perfect!