Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 25328 invoked from network); 28 Oct 2004 13:09:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Oct 2004 13:09:32 -0000 Received: (qmail 70022 invoked by uid 500); 28 Oct 2004 13:09:26 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 69941 invoked by uid 500); 28 Oct 2004 13:09:25 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 69924 invoked by uid 99); 28 Oct 2004 13:09:25 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [84.96.21.10] (HELO mail.anyware-tech.com) (84.96.21.10) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 28 Oct 2004 06:09:25 -0700 Received: from [10.0.0.27] (unknown [10.0.0.27]) by mail.anyware-tech.com (Postfix) with ESMTP id B25415EBDC for ; Thu, 28 Oct 2004 15:09:22 +0200 (CEST) Message-ID: <4180EF81.4030703@apache.org> Date: Thu, 28 Oct 2004 15:09:21 +0200 From: Sylvain Wallez Organization: Anyware Technologies User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Locking the JS global scope to avoid implicit declarations Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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!! Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }