Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 70846 invoked from network); 21 Sep 2006 13:16:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2006 13:16:47 -0000 Received: (qmail 47427 invoked by uid 500); 21 Sep 2006 13:16:41 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 47380 invoked by uid 500); 21 Sep 2006 13:16:40 -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 47364 invoked by uid 99); 21 Sep 2006 13:16:40 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Sep 2006 06:16:40 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=cocoon@lojjic.net; spf=permerror X-ASF-Spam-Status: No, hits=1.2 required=5.0 tests=RCVD_IN_SORBS_WEB Received-SPF: error (idunn.apache.osuosl.org: domain lojjic.net from 69.93.53.226 cause and error) Received: from [69.93.53.226] ([69.93.53.226:56574] helo=admin.mesanetworks.net) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 66/CB-04092-89092154 for ; Thu, 21 Sep 2006 06:16:10 -0700 Received: from [65.175.0.109] (port=63281 helo=[192.168.0.101]) by admin.mesanetworks.net with esmtp (Exim 4.52) id 1GQOOo-00060g-Kn for users@cocoon.apache.org; Thu, 21 Sep 2006 07:15:30 -0600 Message-ID: <4512906F.6040104@lojjic.net> Date: Thu, 21 Sep 2006 07:15:27 -0600 From: Jason Johnston User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Accessing Sessions References: <451282D8.4020400@bnnperformances.de> In-Reply-To: <451282D8.4020400@bnnperformances.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-cPanel-MailScanner-Information: Please contact the ISP for more information X-cPanel-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-cPanel-MailScanner-SpamCheck: X-cPanel-MailScanner-From: cocoon@lojjic.net X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - admin.mesanetworks.net X-AntiAbuse: Original Domain - cocoon.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - lojjic.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Bardo Nelgen wrote: > > Hi all, > > how can I obtain a list of > > a) the current session-id of the current context (hopefully named that > right...) > b) all currently active sessions > > from Cocoon via > > 1. FlowScript > 2. inside a generator > 3. inside an action > I can answer for a) ... I'm not sure if b) is possible but hopefully others will chime in. 1. Flowscript cocoon.session.getId(); 2. inside a generator public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException { ObjectModelHelper.getRequest(objectModel).getSession().getId(); } 3. inside an action (same as 2. except in the act() method rather than setup().) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org