context.xml On Thu, Nov 10, 2011 at 7:05 PM, Pid * <p...@pidster.com> wrote:
> On 10 Nov 2011, at 13:06, Ionut Stoian <isto...@tremend.ro> wrote: > > > It was a typo, i meant "/". > > > > They are available also on tomcat > 6.0.27: > > http://tomcat.apache.org/tomcat-6.0-doc/config/context.html > > > > ---------- Forwarded message ---------- > > From: Pid <p...@pidster.com> > > To: Tomcat Users List <users@tomcat.apache.org> > > Date: Thu, 10 Nov 2011 09:28:15 +0000 > > Subject: Re: sessionCookieDomain and sessionCookiePath > > On 10/11/2011 08:39, Ionut Stoian wrote: > >> Hello, > >> > >> I have an application serving several subdomains (a1.domain.com, > >> a2.domain.com etc.) and i want to be able to have a single session > cookie > >> shared between subdomains (registered on domain ".domain.com"). > >> > >> However, when using Tomcat's sessionCookieDomain (tried on versions > > 6.0.33, > >> 7.0.22) i don't get the expected behaviour: > >> 1. If i set the sessionCookiePath to "\test" for example i get only one > >> JSESSIONID cookie with domain ".domain.com", but the path obviously is > set > >> to "/test". > >> 2. If i set the sessionCookiePath to "\", "" or if i don't set it at > all, > > i > >> get a JSESSIONID cookie with domain ".domain.com" and a JSESSIONID > cookie > >> with domain "a1.domain.com", which is not what i expect. > > > > Why would you set it to '\' or anything that starts with '\'? > > > > sessionCookieDomain, sessionCookiePath are Servlet 3.0 (ie Tomcat 7.0) > > configuration directives. They won't work in Tomcat 6.0. > > > > Where did you set them? In tomcat/conf/context.xml or somewhere else? > > > > > > p > > Please don't top post. > > I missed that addition to 6.0. (must read release notes to see what > else I missed). > > Can you confirm which file you set the config in? > > > p > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >