Forum Discussion
Lotfi_Bouhaddad
Nimbostratus
Feb 20, 2007Persistence using IRule
Hi everyone,
I'm a newbie in irule programming and i need some help to do a persistence based on the http field X-Nokia-MSISDN.
how can i do to check the value of this field in th...
hoolio
Cirrostratus
Apr 15, 2011Hi Jason,
That should work find in 10.x. I'd suggest checking that the header value is not null. You should also set a timeout on the persistence record:
when HTTP_REQUEST {
if { [HTTP::header value "X-Nokia-MSISDN"] ne ""} {
persist uie [HTTP::header value "X-Nokia-MSISDN"] 3600
pool alternate_pool
}
}
Also, make sure to add a OneConnect profile if you're persistence based on a layer 7 property. If you're using SNAT on the serverside connections, you can use the default OneConnect profile. If you're not using SNAT, then create a custom OneConnect profile with a /32 source mask.
Aaron
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
