Forum Discussion

Andrea_Knapp_28's avatar
Andrea_Knapp_28
Icon for Nimbostratus rankNimbostratus
Jun 13, 2008

How to resend a coookie on every request

I know this is a strange request but in order for testing purposes I need to create a RUle that will send a cookie to the client everytime.

 

 

Here is what I have in V9.X I need it changed to 4.X any clues?

 

 

 

when HTTP_RESPONSE {

 

HTTP::cookie insert name abc value d

 

}

 

 

 

Thank you,

 

Andrea

2 Replies

  • I don't think you can insert a header (or cookie) in a response using 4.x iRules. Short of upgrading to 9.x, I'm not sure there is a solution to do this on the BIG-IP. Is this related to the persistence cookie issue (Click here)?

     

     

    Aaron
  • Hi Aaron -

     

     

    Actually kinda. We tried to put our units in once again, and seemed to have fixed the issue with the session intermixing, but instead we are getting session expired issues now. We had to pull the units back out due to impacting too many users. When we pulled the units out, we had made a change on our application servers to insert the cookie when the NEW units were in, because we thought perhaps the IRULE that we had on the v9.x units may have been causing the issue. But when we placed the old units back into service the cookie was still residing on the application sercers and was still causing issues. I was unable to obtain a capture whle the errors were occuring. We pulled the insert cookie rule out of the aplication servers and all returned to normal. I have tech Support looking at this issue as inserting the cookie on every call was supposed to solve our issues with the session crossover. It may have solved it, but introduced a new issue. Users were no lnger sending all the cookies back. Sometimes we lost the perstistence cookie from BIGIP, sometimes it was the JSessionID.

     

     

    So I wanted to try to see what capture information I could receive from the old units, without impacting our current customers.

     

     

    Thank you for your help.

     

     

    Andrea