Forum Discussion
PiotrL
May 29, 2017Cirrus
Secure cookie from a specified pool
I'd like to add the secure attribute for JSESSIONID cookie, that comes from the specified pool. Can I do this as follows ?
when HTTP_RESPONSE {
if {[LB::server pool] equals "xyz_pool"}{
HTTP::cookie secure "JSESSIONID" enable
}
}
- cjuniorNacreous
Hello, Try changing the comparison operator (contains, ends_with), like this:
when HTTP_RESPONSE { if { [LB::server pool] ends_with "xyz_pool" } { HTTP::cookie secure "JSESSIONID" enable } }
Or you can try like this:
when HTTP_RESPONSE { if { [LB::server pool] equals "/Commom/xyz_pool" } { HTTP::cookie secure "JSESSIONID" enable } }
Because the statement "[LB::server pool]" aggregate partitions name in your result.
Regards.
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