Forum Discussion
dragonflymr
Cirrostratus
Hi Kai,
My filling was as well that performance wise it's better to use HTTP::cookie value $cookie ne "" in HTTP_REQUEST but you never know :-)
Based on iRule performance stats it as well seems that working in L7 is less cycle hungry that in L4.
Piotr
P.S. Not my idea, just found some iRule posted on the forum and modified it as much I my skills allowed :-)
Kai_Wilke
Dec 14, 2015MVP
If you really want to get sure which method is faster, then you may set a timestamp (e.g. set start_time [clock clicks] during "CLIENT_ACCEPTED" and then recheck this timestamp (e.g. [expr { $stop_time - $start_time }] when you have proven the existence of the cookie using the one and the other mothod. But I strongly believe this would be just for coriousity... ;-)