F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

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 ?