You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Andres Cubides P." <an...@hotmail.com> on 2006/12/20 18:17:52 UTC
RE: Setting session variables
Apache Tomcat version: 5.5.12
OS: Windows 2003 5.2
No errors appear in tomcat/stderr logs. I have a simple test servlet to show
session id/variables, each time I call the servlet in the same browser
session a different ID is returned:
ID 9180ECEA4F3CBBECC2FA86EA592D2C4E Created: Wed Dec 20 12:13:46 COT 2006
Last Accessed: Wed Dec 20 12:13:46 COT 2006
ID 346AEE8B40C7DB83B330ED1DFC08928B Created: Wed Dec 20 12:13:59 COT 2006
Last Accessed: Wed Dec 20 12:13:59 COT 2006
Can it be related with permissions in work/catalina directories?
thanks,
>From: "Peter Crowther" <Pe...@melandra.com>
>Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>To: "Tomcat Users List" <us...@tomcat.apache.org>
>Subject: RE: Setting session variables Date: Wed, 20 Dec 2006 16:39:45
>-0000
>
> > From: Andres Cubides P. [mailto:andres_cubides@hotmail.com]
> > I'm having trouble setting session variables in a tomcat
> > application.
>
>*Exactly* which 5.5 version is it, what configuration (load-balanced?)
>and what errors / symptoms do you get? We don't really have a lot to go
>on here...
>
> - Peter
>
>---------------------------------------------------------------------
>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
>
_________________________________________________________________
MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/
---------------------------------------------------------------------
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: Setting session variables
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andres,
Andres Cubides P. wrote:
> Searching again in the tomcat list archives I
> found that a "patch" provided by Microsoft for IE 5.5 and 6.0 causes
> cookies to be rejected from servers with non-alphanumeric characters,
> such as "_". The server name with the problem has an "_", when I used
> the IP instead of the name the session problems were resolved.
What a PITA.
At least this is now in the archives one more time. I'm glad I helped,
even though I was on the wrong track ;)
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFiaIt9CaO5/Lv0PARAmo4AJ9ozpj17lDaGr7zc7FlrBLigf33KgCeIFuZ
7WTRUYlcBBjZ8vpQwN+lyWg=
=pSls
-----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
Re: Setting session variables
Posted by "Andres Cubides P." <an...@hotmail.com>.
Cristopher:
Thanks for the Firefox/cookies hint, it was very helpful to figure out the
problem. It was related with Internet Explorer. I was using IE, so I decided
to try Firefox to test the cookies configuration. In Firefox the app worked
perfectly. Searching again in the tomcat list archives I found that a
"patch" provided by Microsoft for IE 5.5 and 6.0 causes cookies to be
rejected from servers with non-alphanumeric characters, such as "_". The
server name with the problem has an "_", when I used the IP instead of the
name the session problems were resolved.
thanks,
>From: Christopher Schultz <ch...@christopherschultz.net>
>Reply-To: "Tomcat Users List" <us...@tomcat.apache.org>
>To: Tomcat Users List <us...@tomcat.apache.org>
>Subject: Re: Setting session variables
>Date: Wed, 20 Dec 2006 12:31:37 -0500
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Andres,
>
>Andres Cubides P. wrote:
> > No errors appear in tomcat/stderr logs. I have a simple test servlet to
> > show session id/variables, each time I call the servlet in the same
> > browser session a different ID is returned:
> >
> > ID 9180ECEA4F3CBBECC2FA86EA592D2C4E Created: Wed Dec 20 12:13:46 COT
> > 2006 Last Accessed: Wed Dec 20 12:13:46 COT 2006
> >
> > ID 346AEE8B40C7DB83B330ED1DFC08928B Created: Wed Dec 20 12:13:59 COT
> > 2006 Last Accessed: Wed Dec 20 12:13:59 COT 2006
>
>Ar you using the same browser to connect to both of your apps (the
>working one, and the non-working one)?
>
>If you are using Mozilla Firefox, is it possible that you have banned
>one of the servers from setting cookies? I just had that problem this
>morning on one of my test servers, actually. I nearly lost my mind
>trying to figure out what was going on.
>
>Also, if you are using ff, try the LiveHttpHeaders extension so you can
>watch the HTTP headers going between the server and the browser. You
>might be able to see if your browser is either ignoring the cookie or
>(for some bizarre reason), sending the wrong one.
>
>- -chris
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.6 (MingW32)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFFiXN59CaO5/Lv0PARApp6AKC2B4BGE6mN+GNRCSzu59uiI/hNMQCgjKRq
>I1rdqFIyOvBPadNhkSgzM5s=
>=hi7w
>-----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
>
_________________________________________________________________
Moda para esta temporada. Ponte al día de todas las tendencias.
http://www.msn.es/Mujer/moda/default.asp
---------------------------------------------------------------------
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: Setting session variables
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andres,
Andres Cubides P. wrote:
> No errors appear in tomcat/stderr logs. I have a simple test servlet to
> show session id/variables, each time I call the servlet in the same
> browser session a different ID is returned:
>
> ID 9180ECEA4F3CBBECC2FA86EA592D2C4E Created: Wed Dec 20 12:13:46 COT
> 2006 Last Accessed: Wed Dec 20 12:13:46 COT 2006
>
> ID 346AEE8B40C7DB83B330ED1DFC08928B Created: Wed Dec 20 12:13:59 COT
> 2006 Last Accessed: Wed Dec 20 12:13:59 COT 2006
Ar you using the same browser to connect to both of your apps (the
working one, and the non-working one)?
If you are using Mozilla Firefox, is it possible that you have banned
one of the servers from setting cookies? I just had that problem this
morning on one of my test servers, actually. I nearly lost my mind
trying to figure out what was going on.
Also, if you are using ff, try the LiveHttpHeaders extension so you can
watch the HTTP headers going between the server and the browser. You
might be able to see if your browser is either ignoring the cookie or
(for some bizarre reason), sending the wrong one.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFiXN59CaO5/Lv0PARApp6AKC2B4BGE6mN+GNRCSzu59uiI/hNMQCgjKRq
I1rdqFIyOvBPadNhkSgzM5s=
=hi7w
-----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