Forum Discussion
Multiple steps persistence
I would like to perform several steps of tests before persisting a user.
Here is the point:
- End users connect through Mobile network and I'm getting a Header from Customer's GGSN containing the MS-ISDN. However, the GGSN is in some case buggy and the Headers doesn't come to the LB.
- Second step check is through JSESSION ID. Our application is generating a JSESSION ID. However, sometimes this ID don't even come because of the GGSN issues.
This is what I want to add :
- I want to add a third step verification of the incoming request before persisting. I want to insert a Cookie for the end user, and persist through this Cookie in the LB to one of the servers.
Below my iRule:
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {
persist add uie [HTTP::cookie "JSESSIONID"]
set add_persist 0
}
}
when HTTP_REQUEST {
set DEBUG 1
if { [HTTP::header exists "X-MSP-CLID"] } {
persist uie [HTTP::header "X-MSP-CLID"]
} else {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"]
} else {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
}
Any ideas? :)
Thanks for your support
Recent Discussions
Related Content
* 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