Akhilesh_128432
Feb 12, 2016Nimbostratus
Irule not working for Cookie Persistence
Hi Team,
We have one application and can be accessed via F5 successfully and we are using cookie persistence for that. Now we are trying to access through Mobile devices. Since there is no cookie for mobile, I wrote a Irule for this.
I created a universal persistence for this Virtual server and applied following Irule for this,.Now Mobile traffic is working fine but I am not sure how to add insert cookie for my Browser traffic (else condition in my loop). I tried different option and none of them are working. Can anybody help me on this
when HTTP_REQUEST {
log "MA Testing : Requested from IP [IP::client_addr]"
set cid [findstr [HTTP::uri] "contextId" 10 "&"] if { $cid != "" } {
log "\MA Testing : ContextId found. Persist based on contextid : $cid"
persist uie $cid
log "MA Testing: Pool member [LB::server name] was selected"
} else
log "\MA Testing : No context id found. So persist based on Session id in the cookie"
persist uie cookie
log "MA Testing: Pool member [LB::server name] was selected"
} }