There are three supported methods for maintaining session affinity with the UAG but cookies is not one of them. Assuming you are using an F5 you should be using the latest Horizon View iApp which will help with UAG configuration.
Load Balancing across VMware Unified Access Gateway Appliances