Bertrand Delacretaz wrote:
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 ;-)
Yup :-)
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/guide/ident.html#1009822 http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/stmt.html#1066604
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }