Forum Discussion
Kai_Wilke
Feb 03, 2016MVP
Hi Teemu,
you're right, the build in support for HttpOnly and Secure flags is somewhat new (v12+ feature). To have the same functionality for older versions, you may want to use the iRule below...
when HTTP_RESPONSE {
foreach cookie [HTTP::cookie names] {
if { $cookie starts_with "BIGipServer" } {
HTTP::cookie version $cookie 1
HTTP::cookie secure $cookie enable
HTTP::cookie httponly $cookie enable
}
}
}
Note: You have to change the
line, if you're using a non-default cookie name.$cookie starts_with "BIGipServer"
Cheers, Kai