PDA

View Full Version : lock and unlock commands


zerooito
10-01-2003, 05:55 PM
Hi!...

I´m wondering about possible conflicts between clients
accessing my application in the "same time".

the matter is that in my onConnect function (server side)
I have some assignments like that:

names[names.length] = user_name;
array1[array1.length] = user_var1;
array2[array2.length] = user_var2;
array3[array3.length] = user_var3;
array4[array4.length] = user_var4;

imagine that I all those lists (arrays) with their
indexes associated to the first one (names).

for example:
names[4] array1[4] array2[4] array3[4] and array4[4]
are all associated to the same user.

well... can you imagine what would happen if two users
login my application at the "same time"??

I would expect some conflits...
but the lock and unlock commands are
for sharedObjects only and now I´m a bit confused...

how to solve that?

thanx in advance!

Zerooito