Forum Discussion
Skuba_85554
Nimbostratus
Feb 05, 2010choosing persistence method
hi
i'm hoping someone can help me with this irule...
i have a virtual server which requires 2 different types of persistence depending on where the user is coming from. f...
hoolio
Cirrostratus
Feb 05, 2010Hi Skuba,
You can use the persist command (Click here) to specify a persistence method from an iRule:
when CLIENT_ACCEPTED {
Check the client IP
if {[IP::addr [IP::client_addr] equals 192.168.0.0/16]}{
Use session cookie persistence
persist cookie insert "my_persist_cookie" 0
} else {
Use source address persistence with a /24 mask and 1 hour timeout
persist source_addr mask 255.255.255.0 3600
}
}
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