Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73859 invoked from network); 3 Aug 2008 00:15:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Aug 2008 00:15:19 -0000 Received: (qmail 41085 invoked by uid 500); 3 Aug 2008 00:15:05 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 41062 invoked by uid 500); 3 Aug 2008 00:15:05 -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 41051 invoked by uid 99); 3 Aug 2008 00:15:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Aug 2008 17:15:05 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.30.17] (HELO QMTA10.emeryville.ca.mail.comcast.net) (76.96.30.17) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Aug 2008 00:14:07 +0000 Received: from OMTA13.emeryville.ca.mail.comcast.net ([76.96.30.52]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id xQN51Z00617UAYkAAcEZXM; Sun, 03 Aug 2008 00:14:33 +0000 Received: from [192.168.1.121] ([68.55.225.178]) by OMTA13.emeryville.ca.mail.comcast.net with comcast id xcEY1Z00B3ra03G8ZcEZF5; Sun, 03 Aug 2008 00:14:33 +0000 X-Authority-Analysis: v=1.0 c=1 a=7WfwSruY8bgA:10 a=R886JP-a0cUA:10 a=xe8BsctaAAAA:8 a=yQG8ifOa1_7wOGnG5Y0A:9 a=0BqPxkrZKJjoYkWmZgdWum4daHQA:4 a=rPt6xJ-oxjAA:10 Message-ID: <4894F864.1070005@christopherschultz.net> Date: Sat, 02 Aug 2008 20:14:28 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Programmatically detecting login or logout events References: <18685933.post@talk.nabble.com> <4891CDE3.8010205@christopherschultz.net> <18770154.post@talk.nabble.com> In-Reply-To: <18770154.post@talk.nabble.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin, MartinOShea wrote: | Thanks for the reply. In the various servlets making up this application, I | don't currently have a user object in every request but tend to use | request.getRemoteUser() where necessary. This also to minimizes traffic. But | what you've suggested is good. You don't necessarily need a user object -- just something that you can use as a marker in the session to indicate that you have processed the login. It can be as simple as a key and Boolean.TRUE stuffed in there. Don't make things more complicated than necessary. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiU+GQACgkQ9CaO5/Lv0PD1VgCgvmVzKNO2g8VrR4JXaj4YEuoS pNcAnjbtQdLBAIgNxLQmjUie/fw2lrEi =L9rd -----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