Forum Discussion
Robert_47833
Altostratus
Jul 29, 2011how to insert cookie and persist to it
Hi,dear irule
I have a pool cjj which has 10 members ,ration is the load blance method
I need to insert cookie and persist with cookie ,
for example client1 ----->VS---->pool membe...
Robert_47833
Altostratus
Aug 02, 2011hI,Bhattman
In item 2,
when HTTP_REQUEST timing on {
set uri [string tolower [HTTP::uri]]
if {[class match $uri starts_with gen3abURLs_SRWD29] } {
if {[HTTP::cookie value_cookie] ne "" } {
pool cjjlb member $value_cookie
}
else {
pool cjjb
}
}
when LB_SELECTED {
set lbvalue "[LB::server_addr] [LB::server port]"
when HTTP_RESPONSE {
if {$lbvalue ne "" } {
HTTP::cookie insert name value_cookie value $lbvalue path "/"
}
}
first request is ok,IE can get the page and get the cookie(10.80.29.15 80)
However,the second request with the cookie ,it doesn't work,even the value_cookie is ip and port of the node
if I change it to the exact node ,such as, pool cjjlb member 10.80.29.15 80 in irule,it works,
I don't know why
can u try it in your lab
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