newbie persistence question cookie and/or message body
rule http_persist_rl {
when HTTP_REQUEST {
if { [HTTP::cookie exists "SessionId"] } {
if { [HTTP::cookie "SessionId"] != ""} {
LB::detach
persist uie [HTTP::cookie "SessionId"]
}
} else if {http_method == “POST” and findstr(http_content,”SessionId=”,10,’&’) != “”} {
LB:detach
Persist uie [findstr(http_content,”SessionId=”,10,’&’)]
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "SessionId"] } {
if { [HTTP::cookie "SessionId"] != "" } {
persist add uie [HTTP::cookie "SessionId"]
}
}
}
}
The cookie name is "SessionId" and the value is an alpha-numeric GUID. The same type of data is sent by another client as part of the request parameters in a POST. ...&SessionId=388292382hfgd223223923gf&...
Since the service behind the LB does not set or use cookies on the response unless the cookies are passed in what will happen for the case where there is no cookie on the Response? Will that cause no persistence for the POST case?
The client using POST has tried to add the SessionId cookie into the headers using Set-Cookie: and I can see it in the headers but there does not seem to be consistent (if any) persistence