Forum Discussion
Tabish_Mirza_12
Nimbostratus
Jan 27, 2014Cookie Persistence “Secure” and “HTTP Only”
Hi Folks,
We are looking to configure “Secure” and “HTTP Only” cookie persistence. We need to know how to configure it & apply with Virtual Server. We configured Cookie persistence with HTTP Coo...
IheartF5_45022
Nacreous
Jan 28, 2014If applied to the virtual on which the cookie is inserted, you can get away with this (it takes advantage of the fact that "HTTP::header replace" affects only the last instance of a given header);-
when HTTP_RESPONSE {
if {[HTTP::cookie exists "cookiename"} {
HTTP::header replace Set-Cookie "[HTTP::header value Set-Cookie];HttpOnly;Secure"
}
}
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