For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Angelo's avatar
Angelo
Icon for Nimbostratus rankNimbostratus
Jun 28, 2018

Cookie Insert

Hi

 

I need to add to cookies into a http_response not sure if my rule is correct

 

when HTTP_RESPONSE { HTTP::cookie insert name "YOUR1stCOOKIENAME" value $VARIABLE1 HTTP::cookie insert name "YOUR2ndCOOKIENAME" value $VARIABLE2 }

 

1 Reply

  • Hi,

    you can try this:

    when HTTP_RESPONSE {
    
    set cookiename "mycookiename"
    set cookievalue "blablabla"
    set cookiepath "/"
    
    
    HTTP::cookie insert name $cookiename value $s_cookieValue path $s_cookiePath domain $s_cookieDomain version 1
    HTTP::cookie secure $cookiename enable
    
    }
    

    Give me the context and I can help you to built your irule.

    As you can noticed i add you the availlability to pass your cookie in secure mode, you can add httponly also if you want...

    Regards