Forum Discussion
anujl_5566
Nov 02, 2011Nimbostratus
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/verifyp...
anujl_5566
Nov 03, 2011Nimbostratus
Kurt, this is the current iRule
when HTTP_REQUEST {
if { [HTTP::path] equals "/api/v1/sendpinonceoff" } {
HTTP::path /sendpinonceoff
pool MM-MEPD
}
if { [HTTP::path] equals "/api/v1/verifypinonceoff" } {
HTTP::path /verifypinonceoff
pool MM-MEPD
}
if { [HTTP::path] equals "/api/v1/processrefund_status" } {
HTTP::path /processrefund_status
pool MM-MEPD_Deliver
}
if { [HTTP::path] equals "/api/v1/processrefund" } {
HTTP::path /processrefund
pool MM-MEPD_Deliver
}
if { [HTTP::path] equals "/api/v1/sendpinajax" } {
log local0. "[IP::client_addr]:[TCP::client_port]: this is the path [HTTP::path] "
HTTP::respond 200 content "HTTP path [HTTP::path]\n\n"
HTTP::path /sendpinajax
pool MM-MEP
persist cookie insert "MM-MEP-SENDPIN"
}
}
Now this Virtual Server so far has non default persistence profile. And as you see depending on the urls in irule we decide on the pool.
Now our site will start hosting 2 new API calls which will have specific urls, For thise calls we need persistence. To add persist cookie command in the iRule I need to add a default cookie profile on Virtual server.
This starts the chaos. After adding default profile I will have to add "persist none" for all urls in this current irule..correct?
Then for the other 2, I can have the default persistence profile take care of the persistence as they will use same pool to server api call.
This is the background.
Thanks again.
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