Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 33888 invoked from network); 18 Sep 2006 13:21:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Sep 2006 13:21:12 -0000 Received: (qmail 59274 invoked by uid 500); 18 Sep 2006 13:21:07 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 59225 invoked by uid 500); 18 Sep 2006 13:21:07 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 59214 invoked by uid 99); 18 Sep 2006 13:21:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 06:21:07 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Sep 2006 06:20:54 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GPJ2X-0002Ct-DI for users@cocoon.apache.org; Mon, 18 Sep 2006 06:20:01 -0700 Message-ID: <6363514.post@talk.nabble.com> Date: Mon, 18 Sep 2006 06:20:01 -0700 (PDT) From: jantje To: users@cocoon.apache.org Subject: Re: cocoon.exit(); In-Reply-To: <450AA6DD.5010007@lojjic.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: janvanoppen@skynet.be References: <6304867.post@talk.nabble.com> <6305790.post@talk.nabble.com> <45095C9A.7030602@weitling.net> <6320969.post@talk.nabble.com> <450AA6DD.5010007@lojjic.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N OK, the solution is: ON EVERY form.showForm(....); var cont = form.showForm(); cont.invalidate At this point, when you "go back" in your browser: you can see all the prvious windows.. but in these windows you can not click on for instance a submit button!!! so OK, all the continuations are invalidated!!! But, i don't want users to go back after a "logout".. beceause there is still private information visible.. So, beside invalidating the continuations.. is it possible to avoid people using the "go back" button? thanks and greetings.. Jason Johnston-3 wrote: > > The cocoon.exit() function only stops the current script execution, it > does not affect any continuations that have already been created. To do > that you need to invalidate those continuations. > > It looks like you're trying to implement a logout process... is there > any reason why you can't just invalidate the whole session? If you've > got your continuations manager (see cocoon.xconf) configured to attach > continuations to the session, then they will automatically be > invalidated along with the session. > > If for some reason you can't invalidate the session, then I think you > need to crawl up the continuation's ancestry and invalidate the oldest, > which will then automatically invalidate all the descendants. Something > like: > > var kont = registrationForm.showForm(... > ... > var oldest = kont; > while(oldest.getParent() != null) { > oldest = oldest.getParent(); > } > oldest.invalidate(); > > Hope that's on the right track. > --Jason > > > jantje wrote: >> Hey! thanks for searching and thinking with me.. but no, i can still use >> the >> "back" option in my browser :-( >> >> thanks! >> >> >> Dev at weitling wrote: >>> Hi Jan! >>> >>> After I stumbled through the wood not seeing the wood for the trees, it >>> now may be I can help :-) >>> >>> Try using cocoon.exit() to exit the flow PLUS >>> WebContinuation.invalidate(). >>> >>> Reijn made me look here: >>> http://cocoon.apache.org/2.1/userdocs/flow/api.html#cocoon >>> >>> Greetings, >>> Florian >>> >>> jantje wrote: >>>> I think it is not working beceause i can still use the "back" button in >>>> my >>>> browser!!! >>>> >>>> OK, maybe no new continuation is created.. BUT, with the "BACK" - >>>> button >>>> I >>>> can still enter a previously created continuation.. >>>> >>>> Maybe there is no function to really STOP the flow, in a cocoon >>>> flowscript? >>>> >>>> Does someone know the answer? >>>> >>>> Greetings, Jan from Belgium >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> Jeroen Reijn wrote: >>>> >>>>> Hi Jantje, >>>>> >>>>> why do you think the cocoon.exit function is not working? Does it not >>>>> exit >>>>> the flowscript without creating a continuation? >>>>> >>>>> Regards, >>>>> >>>>> Jeroen Reijn >>>>> >>>>> -----Original Message----- >>>>> From: jantje [mailto:janvanoppen@skynet.be] >>>>> Posted At: Thursday, September 14, 2006 2:34 PM >>>>> Posted To: Cocoon User List >>>>> Conversation: cocoon.exit(); >>>>> Subject: cocoon.exit(); >>>>> >>>>> >>>>> >>>>> Hi there, >>>>> >>>>> I think the cocoon.exit() function is not working? how can I check >>>>> this? >>>>> >>>>> My code is: >>>>> >>>>> function registration() { >>>>> var varContinue = true; >>>>> while(varContinue) { >>>>> var registrationForm = new >>>>> Form("cocoon:/formDefinition/registration.xml"); >>>>> var rModel = registrationForm.getModel(); >>>>> rModel.date = new java.util.Date(); >>>>> registrationForm.showForm("registration/" >>>>> + cocoon.request.get("identificaton") >>>>> + "-" >>>>> + cocoon.request.get("password") >>>>> + "-" >>>>> + "SB" >>>>> + "-" >>>>> + "SB" >>>>> + "-" >>>>> + "SB" >>>>> + "-" >>>>> + "SB" >>>>> + "-" >>>>> + "SB" >>>>> + ".display"); >>>>> if(registrationForm.submitId == "logout") { >>>>> cocoon.request.setAttribute("form1", >>>>> registrationForm.getWidget()); >>>>> //cocoon.sendPage("form1-success-pipeline.xsp"); >>>>> cocoon.sendPage("registration-success"); >>>>> varContinue = false; >>>>> cocoon.exit(); >>>>> } >>>>> } >>>>> >>>>> }/* > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > -- View this message in context: http://www.nabble.com/cocoon.exit%28%29--tf2271324.html#a6363514 Sent from the Cocoon - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org