Is anyone else spend a lot of time adding [ $+ [ $cid ] ] to variable names to make things work properly across multiple connections?
Maybe there should be a different prefix, instead of '%', to limit a variable's scope to the $cid in which it was called.