php clinet update / tty session params implementation