Forum Discussion
Shay_Ben-David1
Nimbostratus
Jan 05, 2009cookie logging
i have a situation of cookie persistence that does not keep the persistence, problem is that there is multiple A record to the hosts, i log behavior of it and it looks to move to other server in the pool after host is changing, is there a way to persist based on cookie with different hosts.
Thanks
- hoolio
Cirrostratus
Hi Shay,when CLIENT_ACCEPTED { log local0. "[IP::client_addr]:[TCP::client_port]: New TCP connection to [IP::local_addr]:[TCP::local_port]" } when HTTP_REQUEST { if {[HTTP::cookie exists "persist_cookie_name"]}{ log local0. "[IP::client_addr]:[TCP::client_port]: Request with persistence cookie [HTTP::cookie value "persist_cookie_name"] to [HTTP::uri]" } else { log local0. "[IP::client_addr]:[TCP::client_port]: Request contains NO persistence cookie to [HTTP::uri]" } } when LB_SELECTED { log local0. "[IP::client_addr]:[TCP::client_port]: Request sent to [LB::server]" } when LB_FAILED { log local0. "[IP::client_addr]:[TCP::client_port]: Request failed to [LB::server]" } when HTTP_RESPONSE { if { [HTTP::cookie exists "persist_cookie_name"] } { log local0. "[IP::client_addr]:[TCP::client_port]: LTM set cookie [HTTP::cookie value "persist_cookie_name"]" } }
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