cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <coc...@leverageweb.com>
Subject Re: [flow] session creation
Date Wed, 16 Jul 2003 15:15:22 GMT
Jeremy Quinn wrote:

...

> In the Petstore app, it makes sense to only allow one instance of the 
> store per user, so if they open another window they are still editing 
> the same store. So in your case it makes sense to have the petstore as a 
> global (HTTP Session) variable.
> 
> In my application, I want people to be able to work on different parts 
> of the application at the same time, independently of each other. In one 
> window they may be working on 'Coverage' in another window they may be 
> working on 'People', this is a design decision. Therefore in my case I 
> must not keep 'the thing being edited' in a global variable. My 
> externally invoked functions therefore always take an ID and TYPE 
> parameter, so that this specific object can be retrieved for each 
> function call. It is only when I have a Continuation that the specific 
> Object is held in a variable, and then it is always a local one.
> 
> Conversely, the logged in User object must be shared by all invocations, 
> so this is a global.

Could this still be accomplished in the global session with separate 
continuation id's?  The data is still stored in the same session but 
under different keys and would not then intermingle?

Geoff


Mime
View raw message