Forum Discussion
Pedro_Gonzalez_
Nimbostratus
Nov 17, 2006Persistence with Subdomains
We have been using standard cookie persistence with our www.mycompany.com domain and it has worked fine.
Our new redesign web site is using subdomains for product categories like apparel.mycompan...
hoolio
Cirrostratus
Nov 17, 2006Hi Pedro,
I'm not positive on this, but I think you should be able to set a domain on the persistence cookie that would tell the client to present the cookie for any request to a subdomain on the domain you specify. This works when the node is setting the cookie, but I'm not certain it will work with a cookie the BIG-IP is setting itself.
Can you test it and report back? Note that you'll need to change the name of the cookie you're looking for, from my_persistence_cookie.
when HTTP_RESPONSE {
if {[HTTP::cookie count] > 0 } {
foreach aCookie [HTTP::cookie names] {
if { $aCookie == "my_persistence_cookie" } {
HTTP::cookie domain $aCookie mycompany.com
}
}
}
}[EDIT: fixed the setting of the domain on the cookie...and removed an extra pair of curly braces]
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