Forum Discussion

Jason_Glynn_113's avatar
Jason_Glynn_113
Icon for Nimbostratus rankNimbostratus
Dec 05, 2006

iRule and Cookies

Is it good practice to insert cookie response headers using iRules ? Does this place unnecessary overhead on the load balancer? And would I be better off inserting the extra header information using an iis iaspi filter?

 

 

Any feedback ideas would be greatly appreciated

 

 

J
  • That's what iRules were developed for. Inserting Headers/Cookies is a very low overhead operation. Take a look at the wiki for the HTTP::cookie and HTTP::header commands to get yourself started.

     

     

    Forget the ISAPI filter, it's much easier to manage the single iRule than the filters running on each of the servers. As an added bonus, iRules can provide an easier debugging environment (with logging).

     

     

    Now, if you were going to buffer the responses, perform multiple regular expression checks on it, and then modify multiple sections of the response from within the iRule, then that may be at the point of needing some profiling, but I wouldn't worry at all about header insertion.

     

     

    -Joe