Forum Discussion
jay_41157
Nimbostratus
Sep 19, 2008Cookies shared between subdomains..pointing to same VS
HI,
Here is what I have...
A.domain1.domain.com --->>>>> points to VS say 1.1.1.1
B.A.domain1.domain.com --->>>>> also points to the above VS 1.1.1.1
...
hoolio
Cirrostratus
Sep 19, 2008You can set the domain on the persistence cookie using a rule:
This rule assumes you're using the default persistence cookie name (BIGipServerPOOLNAME). If you've customized the cookie name in the persistence profile you could hardcode it in the rule and remove the LB_SELECTED event.
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=1133611608
when LB_SELECTED {
get the pool name used for this request
set my_pool [LB::server pool]
}
when HTTP_RESPONSE {
Check if the persistence cookie exists in the response
if {[HTTP::cookie count] > 0 and HTTP::cookie exists "BIGipServer$my_pool"} {
set the domain attribute on the persistence cookie to .example.com.
HTTP::cookie domain "BIGipServer$my_pool" ".example.com"
}
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