Vadim,
Your observations are correct.
However, I just checked in a change to FOM_JavaScriptInterpreter that causes it to only create a session if you actually modify global variables. (Note: global constants do not cause a session to be created). For example, if you modify the calculator sample to not use global variables, i.e. like this:
...
then no session is created for it.
I think this is the best solution to this problem. Do you agree?
Yes! Thanks much
Vadim