Forum Discussion
Dave_Gerke_2110
Nimbostratus
Oct 29, 2007Cookie Irule Help
IE is blocking cookies for a url because the host name the client comes in on is different than the host name inside the cookie. Client connects on www.xyz.com and a cookie is sent with a host name in...
hoolio
Cirrostratus
Nov 08, 2007This should work to only perform the domain change on the cookie sent by the web app if the request is made to www.abc.com:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "www.abc.com"}{
set update_cookie 1
} else {
set update_cookie 0
}
}
when HTTP_RESPONSE {
if {$update_cookie and [HTTP::cookie exists abcPlanCode]}{
HTTP::cookie domain abcPlanCode www.xyz.com
}
}
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