Multiple users server access

Andre Rombauts andre.rombauts at win.be
Sat Apr 3 16:11:40 EST 2004


Quoting help file

"Any number of users can open and use a stack. However, if the stack is
modified by more than one user, a problem arises, because when the stack
file is opened, it is loaded into memory on the user's system. When the file
is saved, that image in memory is saved. This means that if two users open
the same stack, one user modifies and saves it, and then the other user
saves the same stack, the first user's changes will be lost because they
were not yet part of the stack when the second user opened it.

One method of solving this problem is to create an empty file when the stack
is opened, and remove it when the stack is closed. When the first user opens
the stack, then, the file is created. An openStack handler can check whether
the file already exists. If it does, the application can refuse to open the
stack until the file is removed, indicating that the first user has
finished."

And what about if the session is 'broken'...? No way to close that file. Any
other user will be prevented to access... :-(

André




More information about the use-livecode mailing list