Leo Lapworth  <[EMAIL PROTECTED]> wrote:

> I don't think this would work...
> 
> You can set up a global variable within your startup.pl (before apache
> spawns child processed) and all children will get it, but if you
> edit it in anyway the changes are only reflected in that specific child
> process and you have no way of knowing if the user will hit the
> same child process on their next page request.
> 
> or have I missed something ?

You are correct -- you cannot know that the same user will end up with
the same server, and thus the same copy of the variable, at any given
time.  This can be used to store information between requests, but not
for something like session information or in any way that expects that
you can return to the same data in any particular order, or for any
particular user.  The same user's very next request may hit a different
server and thus require the data to be re-generated, and then some other
user can hit the same server and get the cached data.

-- 
Jeremy  |  [EMAIL PROTECTED]

Reply via email to