cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject Re: Flow without session, how?
Date Sat, 11 Sep 2004 20:58:32 GMT
Le 11 sept. 04, à 20:00, Sylvain Wallez a écrit :

> ...Do you have any global variables in your flowscripts? 
> FOM_JavaScriptInterpeter creates a session (if it doesn't already 
> exist) whenever a variable is set in the global scope.

Ok, I see - the problem is my lack of understanding of Javascript ;-)

This causes a session to be created:

function public_XXX() {
   rt = "dummy";	// huh - is that a global?
   cocoon.sendPage("RRR");
}

Whereas this does not:

function public_XXX() {
   var rt = "dummy";
   cocoon.sendPage("RRR");
}

Guess I'l have to go back to reading the javascript spec ;-)

Thanks for the hint!
-Bertrand




Mime
View raw message