You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Paries <rt...@gmail.com> on 2008/11/29 06:50:56 UTC

session problems between www.domain.com and domain.com

Hello,
I am having problems with my web app
the problem is that
http://www.mydomain.com
and
http://mydomain.com

I am using apache-tomcat-5.5.15

is there somewhere that i can override the jsessionid cookie and make
the cookie domain wide?

Thanks
Randy

---------------------------------------------------------------------
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


Re: session problems between www.domain.com and domain.com

Posted by Randy Paries <rt...@gmail.com>.
On Tue, Dec 2, 2008 at 10:03 AM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Randy,
>
> Randy Paries wrote:
>> I am having problems with my web app
>> the problem is that
>> http://www.mydomain.com
>> and
>> http://mydomain.com
>
> [do not share cookies?]
>
>> I am using apache-tomcat-5.5.15
>>
>> is there somewhere that i can override the jsessionid cookie and make
>> the cookie domain wide?
>
> www.mydomain.com and mydomain.com are not the same domain. This is
> behavior caused by your browser and not by Tomcat. Someone adapted an
> old TC4 hack for TC5.5. Perhaps it could help you:
>
> http://www.esus.be/blog/?p=3
>
> (BTW, I found this by googling for "tomcat cookie domain". Amazing
> what's out there).
>


Thanks that is what i was looking for.

(BTW, I love arrogant dicks that can't just help)

---------------------------------------------------------------------
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


Re: session problems between www.domain.com and domain.com

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Randy,

Randy Paries wrote:
> I am having problems with my web app
> the problem is that
> http://www.mydomain.com
> and
> http://mydomain.com

[do not share cookies?]

> I am using apache-tomcat-5.5.15
> 
> is there somewhere that i can override the jsessionid cookie and make
> the cookie domain wide?

www.mydomain.com and mydomain.com are not the same domain. This is
behavior caused by your browser and not by Tomcat. Someone adapted an
old TC4 hack for TC5.5. Perhaps it could help you:

http://www.esus.be/blog/?p=3

(BTW, I found this by googling for "tomcat cookie domain". Amazing
what's out there).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk1XGUACgkQ9CaO5/Lv0PBxzQCeP+yfangTn4M4Sj+i5dJ4m79U
zqEAnjJoapU0J7pIEJm0WmNcVQYiLkyu
=XItB
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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