cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinhard_po...@gmx.net>
Subject RE: [flow] session creation
Date Wed, 16 Jul 2003 06:35:29 GMT
Could somebody please summarize the status of this discussion and what
you propose how sessions and flows should be connected?

TIA!

Cheers,
Reinhard

> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net] 
> Sent: Tuesday, July 15, 2003 8:16 PM
> To: dev@cocoon.apache.org
> Subject: Re: [flow] session creation
> 
> 
> Christopher Oliver wrote:
> 
> >>> -1 to having "request" or "context" scope.
> >>
> ...
> 
> > Sorry, what I meant was that for the case you mention you don't need
> > the context. So for now I can't think of a reason why you 
> need request 
> > or context "scope".
> 
> 
> Actually, I've got an idea: session is not required too! :)
> Will this work?
> 
> cocoon.context.myCtxAttr = "application-wide data";
> cocoon.session.myAttribute = "per user data like login ID";
> cocoon.request.myAttribute = "per request data";
> 
> var myVar = "currently -- same as session attribute";
> function flow() {
>     var myVar ="same as per request data";
> }
> 
> 
> If it works.... The only thing which *needs* to be changed is this 
> automatic session creation. Should be a way to disable it.
> 
> Vadim
> 
> 


Mime
View raw message