Forum Discussion
DaveC_53879
Nimbostratus
May 06, 2011cookie persistence sendfor: http only
Need help with cookie persistence. LTM version 9.4.6. How do I set the F5 cookie to http only?
hoolio
Cirrostratus
May 12, 2011It doesn't need to "read" the cookie value; it's just checking to see that the cookie is set and has any value.
Can you try this to get more debug info:
when SERVER_CONNECTED {
Save the name of the currently connected pool
set pool_name [LB::server pool]
log local0. "[IP::client_addr]:[TCP::client_port]: Pool $pool_name"
}
when HTTP_RESPONSE {
Check if the response contains the persistence cookie
if {[HTTP::cookie BIGipServer${pool_name}] ne ""}{
log local0. "[IP::client_addr]:[TCP::client_port]: Cookie BIGipServer${pool_name} set, rewriting Set-Cookie: [HTTP::header Set-Cookie]"
Replace the last Set-Cookie header value with the same value and ; HttpOnly appended
HTTP::header replace Set-Cookie "[HTTP::header Set-Cookie]; HttpOnly"
}
}
when HTTP_RESPONSE priority 501 {
Debug logging only. Remove this once testing is complete.
log local0. "[IP::client_addr]:[TCP::client_port]: Current Set-Cookie: [HTTP::header Set-Cookie]"
}
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