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...
Jon_43169
Nimbostratus
Jul 24, 2014We have an ASM module, but we've not deployed it yet.
After spending some time beating on it a bit more, I've managed to sort it out:
when HTTP_RESPONSE {
set ck [HTTP::header values "Set-Cookie"]
foreach acookie $ck {
if {$acookie starts_with "BIGipServer"} {
HTTP::header replace "Set-Cookie" "${acookie}; HttpOnly"
}
}
}
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