Share session cookie between subdomains

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

Set-Cookie: name=value;

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

Thank you

It is an application server’s setting.

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

Thank you for your reply. I edited


<Context sessionCookieName="appSessionId" sessionCookieDomain="" sessionCookiePath="/">

and work perfect!