Forum Discussion
DaveC_53879
Aug 09, 2011Nimbostratus
Persistence with and without www in URL
Is there a way to be persistent when URLs sometime but not always include www? Customers sometimes update contents, and sometimes they use static paths that may or may not contain www in the URL, but...
hooleylist
Aug 16, 2011Cirrostratus
Just change My_cookie to the cookie name you want to rewrite the domain for. If you're using the default cookie name for the cookie insert persistence profile, you can use this:
Check if the persistence cookie exists in the response
if {[HTTP::cookie exists "BIGipServer[LB::server name]"]} {
set the domain attribute on the persistence cookie
HTTP::cookie domain "BIGipServer[LB::server name]" ".ddcpoc.com"
log local0. "[IP::client_addr]:[TCP::client_port]: Modified domain on BIGipServer[LB::server name]"
}
Aaron
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