You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Pier Fumagalli <pi...@betaversion.org> on 2005/04/13 16:53:27 UTC

Flow and Sessions???

Guys, I'm seeing something odd here...

Am I correct in saying that every time the flow is invoked (even if 
it's simply a sendPage() without ANY sendPageAndWait()) a new session 
is initialized in the servlet container???

Any way to disable this behavior?

	Pier


Re: Flow and Sessions???

Posted by Ross McDonald <ro...@vnu.co.uk>.
Pier Fumagalli wrote:

> On 13 Apr 2005, at 16:05, Reinhard Poetz wrote:
>
>> Pier Fumagalli wrote:
>>
>>>
>>> Guys, I'm seeing something odd here...
>>> Am I correct in saying that every time the flow is invoked (even if 
>>> it's simply a sendPage() without ANY sendPageAndWait()) a new 
>>> session is initialized in the servlet container???
>>
>>
>> no, that's no correct. A session is only created if you either access 
>> cocoon.session or define a top-level variable.
>>
>>> Any way to disable this behavior?
>>
>>
>> don't do the above
>
>
> Thanks, we're reviewing every line of the code! :-)
>
> Pier
>
Thanks Reinhard,

our code is reviewed and the nasty little top-level variable that 
slipped through the net is corrected,

problem solved.

Ross McDonald (colleague of Pier's at work).


Re: Flow and Sessions???

Posted by Pier Fumagalli <pi...@betaversion.org>.
On 13 Apr 2005, at 16:05, Reinhard Poetz wrote:
> Pier Fumagalli wrote:
>>
>> Guys, I'm seeing something odd here...
>> Am I correct in saying that every time the flow is invoked (even if 
>> it's simply a sendPage() without ANY sendPageAndWait()) a new session 
>> is initialized in the servlet container???
>
> no, that's no correct. A session is only created if you either access 
> cocoon.session or define a top-level variable.
>
>> Any way to disable this behavior?
>
> don't do the above

Thanks, we're reviewing every line of the code! :-)

	Pier


Re: Flow and Sessions???

Posted by Reinhard Poetz <re...@apache.org>.
Pier Fumagalli wrote:
> Guys, I'm seeing something odd here...
> 
> Am I correct in saying that every time the flow is invoked (even if it's 
> simply a sendPage() without ANY sendPageAndWait()) a new session is 
> initialized in the servlet container???

no, that's no correct. A session is only created if you either access 
cocoon.session or define a top-level variable.

> Any way to disable this behavior?

don't do the above

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------