All,
I found a post at
http://marc.theaimsgroup.com/?l=tomcat-dev&m=104247780113629&w= that points
to a problem with cookies and sub domains using IE 6 and sure enough
Netscape 7 has no problem with my site. Of course that is no comfort to any
tomcat user considering half the world in on IE 6.
So now what.
First, there are no sub domains for new_tridentms.com, only
www.new_tridentms.com as my email shows. Also the link above says:
> My personal workaround (until the bug is fixed) is to move the
content from mydomain.com
> to www.mydomain.com. so the cookie does not conflict with the
cookie
> from test.mydomain.com.
What does this poster mean by "move the content" to www.mydomain.com from
mydomain.com? What does that relate to in the server.xml file or does it
relate to where the file content is stored or what?
Thanks again in advance for all your help.
Lon Palmer
-----Original Message-----
From: Lon Palmer [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:32 AM
To: [EMAIL PROTECTED]
Subject: Host will not save session data
Hello Tomcat Gurus,
I've created a new host in my server.xml file for a site,
new_tridentms.com. This site is redirected from apache. The problem is
this: My new host will not save session info. I created the site on a
development server under the "webapps" default host and everything works
fine. Only when I move it to the new server in it's own host configuration
does it stop storing session vars. I suspect I'm missing some directive
under my <Host> tag but I don't know what it is.
Another thing that is worth mentioning is that I'm using the MVC
paradigm so a one servlet is actually placing the object into the session
and other servlets read it out.
Here are excerpts from my configuration files:
server.xml for Tomcat:
...
<Host name = "new_tridentms.com" debug = "0" unpackWARs="true">
<Alias>www.new_tridentms.com</Alias>
<Logger className="org.apache.catalina.logger.FileLogger"
directory = "logs" prefix="new_tridentms"
suffix=".log" timestamp="true"/>
<Context path="" docBase="/data/tms_www/new_tridentms"
debug="0"
reloadable="true"/>
</Host>
...
httpd.conf:
....
<VirtualHost X.x.x.x:x> #IP Masked out to protect my server
:)
DocumentRoot /data/tms_www/new_tridentms
ServerName www.new_tridentms.com
ServerAlias new_tridentms.com
ServerAdmin [EMAIL PROTECTED]
JkMount /*.jsp tomcatworker # My servlets are mapped using a
.jsp after the servlet name to avoid naming problems with the apache
connector.
</VirtualHost>
....
Thanks so much for your help.
Lon Palmer
Software Engineer
Trident Micro Systems