tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Freitag <tho...@freit.ag>
Subject Re: Sticky Session Problem Tomcat 6.0.29
Date Fri, 11 Mar 2011 06:08:43 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Richard,

On 03/10/2011 01:28 PM, Richard Nduka wrote:
> I have recently configured sticky sessions in Tomcat 6.0.29 but i have found
> out that in some cases when i log into the application with several
> instances of tomcat running i get redirected to the login page. It looks as
> though that Tomcat is terminating the sessions.
> 
> Env
> ===
> Tomcat 6.0.29
> JDK 1.6.0_17
> Using Spring security as application security framework.
> 
> Any help would be appreciated.

Your mail is lacking necessary information to get an idea what the
reason of your problem is.

What are you using in front of your Tomcats? Apache http or MS IIS?
Reverse proxy with mod_jk or mod_proxy (ajp/http)? Any third party
hardware loadbalancing appliances?

A good start to analyse your problem is enabling access logging on all
components, be sure to include JSESSIONID-Cookie in the logpattern (%S
in Tomcat's AccessValve-Configuration, %{Cookie}i in Apache https
Accesslog). This will at least clear when stickiness is not working.

See
<http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve>
and
<http://httpd.apache.org/docs/current/mod/mod_log_config.html#formats>
for access log configuration.

Post relevant excerpts of your Tomcat (<Engine>-block) and Apache httpd
config (mod_proxy-block or mod_jk workers.properties).

Regards,
- -- 
Thomas Freitag
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk15vGcACgkQGE5pHr3PKuVR2wCfUYrvBqs0hXmFRaCey6ZZTA/R
RssAoIr2rk/hPv0aNvrtgHYPuyX0ksgK
=SuDb
-----END PGP SIGNATURE-----

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


Mime
View raw message