Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 12794 invoked from network); 11 Sep 2007 20:13:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 20:13:43 -0000 Received: (qmail 44577 invoked by uid 500); 11 Sep 2007 20:13:27 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 44546 invoked by uid 500); 11 Sep 2007 20:13:27 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 44535 invoked by uid 99); 11 Sep 2007 20:13:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 13:13:27 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [205.158.62.24] (HELO ws6-8.us4.outblaze.com) (205.158.62.24) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 20:14:56 +0000 Received: by ws6-8.us4.outblaze.com (Postfix, from userid 1001) id F103E16ECF3; Tue, 11 Sep 2007 20:12:58 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 From: "Ray Clough" To: "Struts Users Mailing List" Date: Tue, 11 Sep 2007 10:12:58 -1000 Subject: Re: How to invalidate a session in struts 2.0 Received: from [67.53.52.98] by ws6-8.us4.outblaze.com with http for ray@allthisisthat.com; Tue, 11 Sep 2007 10:12:58 -1000 X-Originating-Ip: 67.53.52.98 X-Originating-Server: ws6-8.us4.outblaze.com Message-Id: <20070911201258.F103E16ECF3@ws6-8.us4.outblaze.com> X-Virus-Checked: Checked by ClamAV on apache.org The only thing "wrong" with it is that now you are putting application cont= rol logic in a jsp page, which is 'OK' for small apps, and is probably 'OK'= in this particular instance if there are no complicating factors. However= , for purists, it IS putting control logic in a jsp page, which purists do = not view as 'OK' (speaking as a purist myself, while acknowledging this as = a possible character flaw.). - Ray Clough > ----- Original Message ----- > From: "Gabriel Belingueres" > To: "Struts Users Mailing List" > Subject: Re: How to invalidate a session in struts 2.0 > Date: Tue, 11 Sep 2007 16:16:41 -0300 >=20 >=20 > Personally, I use the good old >=20 > <% session.invalidate(); %> >=20 > as the last instruction of my logout.jsp page. >=20 > AFAIK, to invalidate the session inside an action, you must downcast > the session Map (from the SessionAware interface) to a SessionMap > class, which seems little awkward to me. >=20 > Besides, using session.invalidate() doesn't seems to me like an > anti-pattern or something wrong. >=20 > Gabriel >=20 > 2007/9/11, illusion : > > > > Hey, > > > > How to invalidate a Http Sesssion in struts 2.0? There is a SessionMap > > class which asks for a httpservletrequest as a parameter, and has an > > invalidate method for the http session, not sure how this works. > > > > thanks in advance for your assistance > > -- > > View this message in context:=20 > > http://www.nabble.com/How-to-invalidate-a-session-in-struts-2.0-tf44243= 31.html#a12620475 > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > > For additional commands, e-mail: user-help@struts.apache.org > > > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > - Ray Clough ray@allthisisthat.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org