Forum Discussion
Osama_Friejeh_6
Mar 11, 2008Historic F5 Account
add cookie in http response after 302 redirect
Hi,
i am load balancing three web servers that require authentication and persistence. all work fine until certain links return a 302 redirect. the connection is load balanced to a new membe...
Nicolas_Menant
Employee
Mar 11, 2008Hi,
Could it be that your 302 redirect on another domain ?
If yes, you can update the domain data of the BIGIP cookie:
when HTTP_RESPONSE {
use this domain to set the domain attribute on the
BIG-IP persistence cookie
set my_domain ".example.com"
set my_pool "poolA"
loop through each of the cookies in the response
if {[HTTP::cookie count] > 0 } {
foreach aCookie [HTTP::cookie names] {
if the current cookie matches the format for the persistence cookie, modify it
if { $aCookie == BIGipServer$my_pool" } {
set the domain attribute on the persistence cookie
HTTP::cookie domain $aCookie $my_domain
}
}
}
}
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