Forum Discussion

Howard_124342's avatar
Howard_124342
Icon for Nimbostratus rankNimbostratus
Oct 20, 2014

Setting a cookie to httponly

Hello, I am trying to set a cookie to httponly using the following irule, but I cannot get it working:

 

when HTTP_RESPONSE { set cookieNames [HTTP::cookie BIGipServerhf50.vwcredit.http] foreach aCookie $cookieNames { HTTP::cookie version $aCookie 2 HTTP::cookie httponly $aCookie enable } }

 

Can anyone help with this?

 

1 Reply

  • A suggestion .. Have you tried removing the existing cookie and re-adding it back with the same value and other settings ?