Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 77407 invoked from network); 1 Sep 2009 18:20:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 18:20:53 -0000 Received: (qmail 74464 invoked by uid 500); 1 Sep 2009 18:20:51 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 74421 invoked by uid 500); 1 Sep 2009 18:20:51 -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 74411 invoked by uid 99); 1 Sep 2009 18:20:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 18:20:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of petergphillips@googlemail.com designates 209.85.211.180 as permitted sender) Received: from [209.85.211.180] (HELO mail-yw0-f180.google.com) (209.85.211.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 18:20:38 +0000 Received: by ywh10 with SMTP id 10so296729ywh.7 for ; Tue, 01 Sep 2009 11:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=WSzKi5UGpdIHGUqNKjcGemLvRaDSRUeHqRZ3hazPa7U=; b=yE6a0BR8MCyS/XwrHnsHI2Dmz3AaBKZctkGEJnJfBTwXLhc6LwGLe8Lk91udnA1Prc dyC6IaNAAlqa8ALKE9EsTcI4xa1bKA/ysGClsHVoY20zm/e+BdAqHK8GPTXuaTiaAt51 G2JegY7eCwS27LLDrlKS/6E2Eim0lIa23M1X0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rGmRDQSrS2TzyeWyZvfCpvURUok1/LE28V+mInfim37te7yTSmmrUJmNXE6/NuezlE U7LVPBb+L4ddWVwQUsRwXzObJdv5AOehfrJxWgEOYiiYsUtYRjYh1rertf3MRZ8zV5ee QgcEWBym+9A/PJ843asVxYr4KiUxlHj82snsQ= MIME-Version: 1.0 Received: by 10.91.82.13 with SMTP id j13mr5264232agl.112.1251829217787; Tue, 01 Sep 2009 11:20:17 -0700 (PDT) In-Reply-To: <8CBF931C0BCE90E-1240-3EA9@webmail-m018.sysops.aol.com> References: <4A9D026A.708@yahoo.com> <7270d7cd0909010419y5f9ace2fn5a8d7fef4419a0b3@mail.gmail.com> <1251812967.4050.9.camel@enjoyexplain-lm> <8CBF931C0BCE90E-1240-3EA9@webmail-m018.sysops.aol.com> Date: Tue, 1 Sep 2009 19:20:17 +0100 Message-ID: <99df32cd0909011120x48827e8u7acbbc3a4b310f58@mail.gmail.com> Subject: Re: Need to disable session interceptor From: Peter Phillips To: Struts Users Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org When I upgraded from 2.0.x to 2.1.7 I found that the i18n interceptor now always creates a session too. The way I normally track down rogue session creations is to debug tomcat in Eclipse and add breakpoints to the javax.servlet.http.HttpServletRequest.getSession() and javax.servlet.http.HttpServletRequest.getSession(boolean) methods. That way you will find out exactly what the culprit is. Peter. 2009/9/1 : > > =A0JSP create sessions by default. It is servlets that don't create a ses= sion unless you > call getSession(). Do you have something like > > <%@ page session=3D"false"> > > at the top of your JSPs? > > > > > > > > Chris > > > > > > > -----Original Message----- > From: Rajeev Sharma > To: Struts Users Mailing List > Sent: Tue, Sep 1, 2009 9:49 am > Subject: RE: Need to disable session interceptor > > > > > > > > > > > I googled this and the struts2 performance tuning page says this "Struts > 2 does not create sessions unless asked to (for example, by having the > createSession interceptor in your interceptor stack). Note that when you > use SiteMesh however, a session will always be created" > > I am never creating the session in my code directly and AFAIK I am not > using SiteMesh (I don't even know what exactly is this). I have written > code using JSP/Servlet and my knowledge says that unless the session is > created explicitly it wont be created. Is there any interceptor in the > defaultStack which creates it? (is the createSession part or > defaultStack?) or I am doing something wrong. > > I opened some pages on my application and found there was one session > created for my browser and others for other clients, So I guess this has > nothing to do with JMeter. Sessions are being created for every client. > I am trying to find out why is the session created when I did not create > the session in my code. > > -- > Rajeev > > -----Original Message----- > From: Martin Gainty > Reply-to: " > Struts Users Mailing List" > To: Struts Users Mailing List > Subject: RE: Need to disable session interceptor > Date: Tue, 1 Sep 2009 09:23:58 -0400 > > Nils- > > doc suggests implementing a HttpCookieManager to handle the session > any suggestions on which HttpCookieManager to implement and possible > configurations? > > (i think JMeter is O/T so please ping offline) > > thanks > Martin Gainty > ______________________________________________ > Note de d=E9ni et de confidentialit=E9 > Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAt= es pas le > destinataire pr=E9vu, nous te demandons avec bont=E9 que pour satisfaire = informez > l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e ou la copie de= ceci est > interdite. Ce message sert =E0 l'information seulement et n'aura pas n'im= porte > quel effet l=E9galement obligatoire. =C9tant donn=E9 que les email peuven= t facilement > =EAtre sujets =E0 la manipulation, nous ne pouvons accepter aucune respon= sabilit=E9 > pour le contenu fourni. > > > > >> Date: Tue, 1 Sep 2009 13:19:22 +0200 >> Subject: Re: Need to disable session interceptor >> From: nilsga@gmail.com >> To: user@struts.apache.org >> >> From the JMeter FAQ: "How do I ensure each http request for jsp is >> within one jsessionid ?" >> >> http://wiki.apache.org/jakarta-jmeter/JMeterFAQ#head-114aca8407cf0eaff55= b7ae5955eda46b1e2cecb >> >> Nils-H >> >> On Tue, Sep 1, 2009 at 1:15 PM, Dave Newton wrote= : >> > Rajeev Sharma wrote: >> >> >> >> I am new to struts > 2 (I mean struts). I am developing an application which >> >> does not need to use sessions at all. When I tested my application wi= th >> >> jmeter, I got 18000 sessions created (tomcat showed me this). Looks l= ike > for >> >> every individual request there is one session created. How can I remo= ve the >> >> session interceptor at all (and other components related to sessions)= , so >> >> that there are no sessions created in my application. >> > >> > There isn't a session created for each request, there's a session per = client >> > conversation. Also, AFAIK, Struts 2 doesn't do anything in particular >> > regarding session creation--that is handled by the container. >> > >> > Dave >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> > For additional commands, e-mail: user-help@struts.apache.org >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> > > _________________________________________________________________ > Get back to school stuff for them and cashback for you. > http://www.bing.com/cashback?form=3DMSHYCB&publ=3DWLHMTAG&crea=3DTEXT_MSH= YCB_BackToSchool_Cashback_BTSCashback_1x1 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org