tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burak Yýlmaz <netson...@yahoo.com>
Subject Re: Different aliases have different sessions in Tomcat, why?
Date Wed, 04 Apr 2007 15:40:05 GMT
The ip adress is just set correct in the dns servers...simply the host adress in server.xml
is set to www.mydomain.com and i defined alias as mydomain.com

Tomcat recognize www.mydomain.com and mydomain.com as different applications and creates different
sessions for them...

Any recommendations?
thanks


----- Original Message ----
From: Martin Gainty <mgainty@hotmail.com>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Wednesday, April 4, 2007 2:46:42 AM
Subject: Re: Different aliases have different sessions in Tomcat, why?

Burak-

nslookup www.mydomain.com
qill display a IP address
then put the IP entry in your hosts file

e.g.
127.0.0.1 mydomain.com

M-
----- Original Message ----- 
From: "Burak Yýlmaz" <netsonicc@yahoo.com>
To: <users@tomcat.apache.org>
Sent: Tuesday, April 03, 2007 6:44 PM
Subject: Different aliases have different sessions in Tomcat, why?


> Hi all i have a Tomcat 6.0.10 running on Centos 4.4
>
> My configuration file(server.xml) is as below. Now i am explaning whats 
> happening..I have changed the default webapplication by setting context 
> path to zero length string and set my host applicationbase to 
> "webapps/mydomainapp" value... By the way myapplication works well. (Until 
> here everything is just an information)
>
> The problem is, when i type www.mydomain.com i am loging in with my 
> account..And then typing address mydomain.com (without www) it asks me to 
> log in again...It does not recognize the session of the 
> www.mydomain.com... So i have different sessions for every Alias i defined
>
> Is there anyway to correct this?
>
> thanks for any help
> Burak YILMAZ
>
>
>            unpackWARs="true" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
>    <Alias>mydomain.com</Alias>
>
> <Context path="" docBase="." debug="5" reloadable="true" 
> crossContext="true">
>
> <Resource name="jdbc/myprojectdb" auth="Container" 
> type="javax.sql.DataSource" 
> factory="org.apache.commons.dbcp.BasicDataSourceFactory"
>               maxActive="100" maxIdle="30" maxWait="1000"
>               username="root" password="xxx" 
> driverClassName="com.mysql.jdbc.Driver"
>               url="jdbc:mysql://localhost:3306/myprojectdb"/>
>
>    <parameter>
>        <name>connectionProperties</name>
>        <value>autoReconnect=true</value>
>        <value>useUnicode=true</value>
>        <value>characterEncoding=utf8</value>
>    </parameter>
>
> </Context>
> </Host>
>
>
>
>
>
> ____________________________________________________________________________________
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
> http://tv.yahoo.com/collections/265 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org









 
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message