Forum Discussion

anujl_5566's avatar
anujl_5566
Icon for Nimbostratus rankNimbostratus
Nov 02, 2011

Persistence Cookie iRule not working as desired

when HTTP_REQUEST {

 

if { [HTTP::path] equals "/api/v1/sendpinonceoff" } {

 

HTTP::path /sendpinonceoff

 

pool MM-MEPD

 

persist none

 

}

 

if { [HTTP::path] equals "/api/v1/verifypinonceoff" } {

 

HTTP::path /verifypinonceoff

 

pool MM-MEPD

 

persist none

 

}

 

if { [HTTP::path] equals "/api/v1/processrefund_status" } {

 

HTTP::path /processrefund_status

 

pool MM-MEPD_Deliver

 

persist none

 

}

 

if { [HTTP::path] equals "/api/v1/processrefund" } {

 

HTTP::path /processrefund/

 

pool MM-MEPD_Deliver

 

persist none

 

}

 

if { [HTTP::path] equals "/api/v1/sendpinajax" } {

 

pool MM-MEP

 

persist cookie insert "MM-MEP-SENDPIN"

 

}

 

}

 

 

Now when I go to the url /api/v1/sendpinajax, I see the cookie MM-MEP-SENDPIN. The problem is I also see the default persistence cookie set for the Virtual Server. Is this desired behavior?