Forum Discussion
dragonflymr
Dec 14, 2015Cirrostratus
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_WilkeDec 14, 2015MVPIf 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... ;-)
- dragonflymrDec 14, 2015CirrostratusCuriosity is powerful motivation :-) so maybe I will but I think it's not worth effort in this case... Piotr