Unfortunately that did not work. The cookie still got set as
domain.com, not .domain.com
I have in server.xml:
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Valve
className="org.apache.catalina.authenticator.SingleSignOn"
cookieDomain=".localhost"/>
</Host>
</Engine>
Now, this is still in development, thus the localhost, and I've
defined many other "hostnames" in my hosts file, like
host1.localhost, host2.localhost, host3.localhost. My app is working
great and responding to those correctly, but the cookie is being set
as localhost, not .localhost.
Jeremy
On Apr 21, 2007, at 11:30 AM, Johnny Kewl wrote:
So.... if you want to get the browser to treat the 2 domain names
the same.... you have to SOMEHOW set the domain in that JSession
cookie.
Tomcat will automatically set it to abc.domain.com and
def.domain.com.....
but
you need to make it set BOTH machines to ".domain.com".
<
Valve className="org.apache.catalina.authenticator.SingleSignOn"
cookieDomain=".domain.com"
/>
Greetings!
I have domain.com and my app uses hosts under that domain, like
abc.domain.com, def.domain.com... When the user logs in, the
session is valid only on domain.com... How can I make that
session also valid under the other hostnames?
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]