Forum Discussion
gavin84_31753
Nimbostratus
Dec 07, 2012Secure 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, ...
hoolio
Cirrostratus
Jun 18, 2013In v11.0 you can use 'HTTP::cookie httponly $cookie_name enable' to set this flag:
https://devcentral.f5.com/wiki/iRules.http__cookie.ashx
when HTTP_RESPONSE {
Check if the response contains the persistence cookie
if {[HTTP::cookie BIGipServerMy_Http_Pool] ne ""}{
Set the httponly flag on the persistence cookie if it is in the response
HTTP::cookie httponly BIGipServerMy_Http_Pool enable
}
}
Aaron
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