fixed cookie handling in example