Vadim Gritsenko wrote:

Sylvain Wallez wrote:

Carsten Ziegeler wrote:

This might be a dump question, but I thought that global variables are attached to the session of the current user. Is this wrong or are there different kinds of global variables?


Yes, the "global" scope in flowscript is attached to the session. That means implicitely declared variables are shared by all continuations of a given user instead of being local to a continuation. Things would be even worse if the global scope was unique to the application!!


Speaking of which, should this be an option? If global scope is shared among users, it would allow writing stateful, multi-user applications. Opens interesting possibilities...


We decided to have the global JS scope attached to the session, as this is the most natural meaning of "global" within webapps, and replaces the use of session attributes. Now if you need to write multi-user applications, you still have Context attributes.

Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



Reply via email to