Forum Discussion
Gordon_Johnston
Nimbostratus
Jan 06, 2006Selecting persist profile
I'm sure I'm missing something obvious here but I can't figure it out.
I need to achive something like this in an iRule:
if { statement } {
persist profile_one
use pool pool_a
}
elseif { statement } {
persist profile_two
use pool pool_a
}
elseif { statement } {
persist none
use pool pool_a
}
Where profile_one and profile_two are two different cookie insertion profiles (different timeouts)
What I need is how to make the persistance profile selection above work, "persist profile_name" is clearly not the right syntax.
It seems to be possible to do "persist cookie insert"
but that appears to use the persistance profile associated with the VS which isn't really what I need.
Any ideas, scratching my head here.
- Gordon_Johnston
Nimbostratus
I've just seen the "[iRule - v9.0] URI switching & Persistence" document in the code share. That explains how to set distinct cookie names which half gets to where I need to be, but I still need to be able to set different timeouts. - Gordon_Johnston
Nimbostratus
Any ideas on this? - Gordon_Johnston
Nimbostratus
I've been pointed in the direction of this post which answers my query http://devcentral.f5.com/default.aspx?tabid=28&view=topic&forumid=5&postid=1276 - rapmaster_c_127Historic F5 AccountYou could always pull the "use pool a" statement out of the braces after the if clause.
- Colin_Walker_12Historic F5 AccountAs far as I know, there aren't currently any plans to change the way that this functionality behaves, but you can always submit a change request via Technical Support, and it will be reviewed and considered for future versions.
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