cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston <coc...@lojjic.net>
Subject Re: Accessing Sessions
Date Thu, 21 Sep 2006 13:15:27 GMT
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


Mime
View raw message