You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ralph Goers <Ra...@dslextreme.com> on 2004/12/15 18:45:56 UTC

Re: what happened to the global flow variables mapped to the session?

Stefano Mazzocchi said:
> I migrated an application that I wrote 18 months ago over to the latest
> trunk and here are the incompatible things:
>
>   1) Rhino 1.6 is a lot more strict when you don't use "var" in front of
> a variable declaration. The previous version of Rhino was more tolerant.
> Not a problem but there is no back compatibility.
>
>   2) it used to be that in order to have global variable persist across
> calls even without continuations, you called cocoon.createSession() and
> the flow put those values in the session. Then it was removed and done
> automatically. Now, I can't find a way to make it work.
>
> So, is anybody able to persist global flow variables across
> non-continuated flow executions?

I believe I saw this on the users list the other day and as I recall, the
answer was that it happens automatically when you make it a class member
variable.

Ralph