gavin84_31753
Dec 07, 2012Nimbostratus
Secure and HTTP attribute setting on BIGIP cookie in Persistence Profile
So I'm in need of an IRULE to set HTTP Only and secure flags on the cookie that we are using in our cookie persistence profile, call it BIGIP. I did some research and found this one on dev central, however it broke some other cookie domains. I really just need to have only 1 cookie configured for secure/httponlly
when HTTP_RESPONSE {
set myValues [HTTP::cookie names]
foreach mycookies $myValues {
if { [HTTP::cookie expires $mycookies] eq "" }{
set mypath [HTTP::cookie path $mycookies]
set myvalue [HTTP::cookie $mycookies]
HTTP::cookie remove $mycookies
HTTP::cookie insert name $mycookies value $myvalue version 1
HTTP::cookie httponly $mycookies enable
HTTP::cookie secure $mycookies enable
if { $mypath ne "" } { HTTP::cookie path $mycookies $mypath }
}
else { HTTP::cookie secure $mycookies enable }
}
}
What can I do here? Any help would be appreciated.
Thanks,
Gavin