Forum Discussion
Jon_Gilyeat_149
Nimbostratus
Jul 24, 2014HTTP::cookie and setting flags
I'm struggling with writing some irule logic which sets the httponly and secure flags on only the bigipserver cookies inserted by the F5 when using cookie session persistence, while not affecting any...
cjunior
Nacreous
Jul 24, 2014 when HTTP_RESPONSE {
set ck_names [HTTP::cookie names]
foreach ck_name $ck_names {
if { [string tolower $ck_name] starts_with "bigipserver" } {
set ck_value [HTTP::cookie value $ck_name]
set ck_path [HTTP::cookie path $ck_name]
HTTP::cookie remove $ck_name
HTTP::cookie insert name $ck_name value $ck_value path $ck_path version 1
HTTP::cookie httponly $ck_name enable
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects