Forum Discussion
MSK_222682
Nimbostratus
Feb 01, 2016Multiple Secure and HttpOnly attributes seen for cookie
Hi,
I ran a curl command from a linux machine to a URL (on https) which is hosted on our BIG IP LTM. This virtual server has been set to add Secure, HttpOnly attributes to the cookie.
However, I s...
Brad_Parker
Cirrus
Feb 01, 2016Try using this iRule. It will not try to set secure or httponly if it is already set. What you are doing to manually changing the cookie payload without inspecting what is already there.
when HTTP_RESPONSE {
foreach mycookie [HTTP::cookie names] {
HTTP::cookie secure $mycookie enable
HTTP::cookie httponly $mycookie enable
}
}
Brad_Parker
Cirrus
Feb 01, 2016Apparently edit isn't working today. You probably also want to ensure your cookie is at least version 1 using this:
when HTTP_RESPONSE {
foreach mycookie [HTTP::cookie names] {
HTTP::cookie version $myCookie 1
HTTP::cookie secure $mycookie enable
HTTP::cookie httponly $mycookie 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
