Multiple users server access

Andre Garzia soapdog at mac.com
Sat Apr 3 16:37:24 EST 2004


On Apr 3, 2004, at 6:11 PM, Andre Rombauts wrote:

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

you can create a expiration lock, like this, check the timestamp of the 
lock file, if it's too old, ignore it... you can work like this:

every five minutes the stack thats running (the first user stack) will 
touch the lock file, this will modify it's timestap. The second user 
need only to query if the timestamp is more than five minutes old, this 
will mean that session for previous user was broken or that he left.

Cheers



-- 
Andre Alves Garzia ð 2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org



More information about the use-livecode mailing list