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
http persistance is cookie.
When a user login to the system using A.domain1.domain.com the F5 sets a cookies for this user and it uses this cookie to stick the user to a particular server say server 1; and that works fine.
Lets say now the user accesses the B.A.domain1.domain.com site and it is required that are also kept to the same server as the A.domain1.domain.com (server1 from above).
Any thoughts ? thanks
- hoolio
Cirrostratus
You can set the domain on the persistence cookie using a rule: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" }
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