cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Oliver <res1c...@verizon.net>
Subject Re: [flow] session creation
Date Tue, 15 Jul 2003 16:34:09 GMT
Geoff Howard wrote:

> Christopher Oliver wrote:
>
>> Geoff Howard wrote:
>>
>>> Christopher Oliver wrote:
>>>
>>>> Continuations do not require the session. But the session is needed 
>>>> to support cases where you use JS global variables to share data 
>>>> between multiple top level page flows. In your cases, there are no 
>>>> shared variables or else there is only a single page flow. 
>>>
>>>
>>>
>>>
>>> So (can't test this now) does that mean that even currently, if 
>>> instead of:
>>>
>>> var role = Packages.org.apache.cocoon.caching.Cache.ROLE;
>>> function cacheEvent() { ...
>>>
>>> I do:
>>>
>>> function cacheEvent() {
>>> var role = Packages.org.apache.cocoon.caching.Cache.ROLE;
>>> ...
>>>
>>> I skip the session? 
>>
>>
>>
>> Either would work without the session. Each time your script is 
>> executed the "role" global variable will be reset to 
>> "Packages.org.apache.cocoon.caching.Cache.ROLE".
>>
>
> Right, but what I was asking was "does the session not get 
> automagically created with the current code if I do the second?"


Currently the session is created regardless of what you do.

>
> Geoff
>
>



Mime
View raw message