Aflex logic not taking precedence over session persit cookie

Community Forum Forums Thunder and AX Series aFleX Aflex logic not taking precedence over session persit cookie

This topic contains 0 replies, has 1 voice, and was last updated by avatar jpost 2 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #14782
    avatar
    jpost
    Member

    Hi,
    We have an aflex rule that redirects requests based on the url. There is also a persistence cookie set. The issue is when the url switches, the aflex logic should send the request to a new server pool, but the cookie appears to be taking precedence and forcing the request back to the original server the user was sent to. How do we get the aflex logic to determine the correct pool, and then if there is a persistence cookie for a server in that pool, use the cookie.
    Current Aflex rule:

    when HTTP_REQUEST {
    set host [string tolower [HTTP::host]]
    set uri [string tolower [HTTP::uri]]
    if { ($host equals “www.example.com”) } then {
    if { ([HTTP::uri] equals “/index.htm”) or ([HTTP::uri] equals “/”) or ([HTTP::uri] starts_with “/TMS/”) or ($uri starts_with “/options”) } then {
    pool prod-example-com-pool2
    } else {
    pool prod-example-com
    }
    } else {
    HTTP::redirect https://www.afford.com[HTTP::uri]
    }
    }

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Comments are closed.