fixed cookie process in TSQLRestServer