Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 70555 invoked from network); 1 Dec 2007 14:43:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2007 14:43:45 -0000 Received: (qmail 28454 invoked by uid 500); 1 Dec 2007 14:43:23 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 28440 invoked by uid 500); 1 Dec 2007 14:43:23 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 28429 invoked by uid 99); 1 Dec 2007 14:43:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2007 06:43:22 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of barbarasv@di.uminho.pt designates 193.136.19.24 as permitted sender) Received: from [193.136.19.24] (HELO mx1.di.uminho.pt) (193.136.19.24) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2007 14:43:02 +0000 Received: (qmail 16311 invoked from network); 1 Dec 2007 14:43:02 -0000 Received: from bl6-122-252.dsl.telepac.pt (HELO BarbaraPC) (barbarasv@[82.155.122.252]) (envelope-sender ) by mx1.di.uminho.pt (qmail-ldap-1.03) with SMTP for ; 1 Dec 2007 14:43:02 -0000 From: =?iso-8859-1?Q?B=E1rbara_Vieira?= To: "'Tomcat Users List'" References: <001801c83375$98a96e50$c9fc4af0$@uminho.pt> <47506170.6070202@hanik.com> <000001c833ae$656dcd40$304967c0$@uminho.pt> <2828B04F0113CD468E6D1D51DF4362A404187B14@USEA-EXCH2.na.uis.unisys.com> In-Reply-To: <2828B04F0113CD468E6D1D51DF4362A404187B14@USEA-EXCH2.na.uis.unisys.com> Subject: RE: SSL Session expires every request Date: Sat, 1 Dec 2007 14:43:07 -0000 Message-ID: <000001c83428$7d8edcf0$78ac96d0$@uminho.pt> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcgzpceEQ/uMlEgCSJuoYN3UY1YqRAAB7rXgAADmg2AAHUYLwA== Content-Language: pt X-Virus-Checked: Checked by ClamAV on apache.org Hi Chuck! That's what I'm doing : - I had implemented a valve that extends FormAuthenticator to provide 2 authentications methods at the same time : FORM and CLIENT_CERT. - Until this week everything worked fine : I can authenticate the users = with 2 authentications methods, and the session is maintained. Yesterday, = when I try to accede to HttpSession in Servlets, what's happen was: when the = user is authenticated using FORM method, HttpSession isn't null in servlets, neither internal session(Session) in valve. However, when the user is authenticated using a CERT, all the sessions are null : HttpSession in Servlets and Session(Internal Session) in my Valve. - Well, I thought that the problem was in my valve, so I disable my = valve, and in my web application I configured only one authentication method - CLIENT_CERT. However, the HttpSession was still null. - The strange thing is that everything works fine - I can authenticate = the user using CLIENT_CERT method, and retrieve to him the requested URL and = I have access to Principal in the HttpServletRequest object. But, when = there is no session.=20 - I had checked if the browsers accept cookies too, and it accepts. Do you have any idea of what's happen?! Thanks, Regards from Braga, Portugal B=E1rbara Vieira =20 -----Original Message----- From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]=20 Sent: s=E1bado, 1 de Dezembro de 2007 00:30 To: Tomcat Users List Subject: RE: SSL Session expires every request > From: B=E1rbara Vieira [mailto:barbarasv@di.uminho.pt]=20 > Subject: RE: SSL Session expires every request >=20 > HttpSession wasn't null in the beginning, when I started > my implementation. However, now is null in every request. How are you retrieving the session? A code sample would be good. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you = received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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