Hi,
Sure, both will work. For Cookie Hash you can pick any cookie returned by server (of course the one used for identifying user session is most appropriate) by specifying Cookie Name in persistence profile.
Difference between UIE and Cookie hash is in what is used as persistence key ID:
- Cookie Hash - hash of the value in specified cookie
- UIE - actual value of specified cookie
Question is if hashing has more performance hit that executing iRule - that I am curious about.
In my opinion benefit of using UIE is that actual cookie value is used as persistence record ID. So it's a lot easier to match persistence record to actual client session it is used for - persistence record value will be identical as value of cookie generated by server and being returned by client.
Of course in case of Cookie Hash you will still see cookie used for hash (as created by server) but it's value will not match value used as key for persistence record.
Piotr