Forum Discussion
Asif_Thobhani_7
Nimbostratus
Jun 12, 2008How can I read the persistence profile settings using PROFILE::persist
Can someone please help with how to use the PROFILE::persist command?
From within my iRule, I want to find out what's the name of the cookie that's been used for persistence (cookie insert).
Here is what I have so far:
profile persist my_cookie_profile {
defaults from cookie
mode cookie
cookie mode insert
cookie name my_cookie
}
when CLIENT_ACCEPTED {
if { [PROFILE::exists clientssl] == 1} {
log local0. "client SSL profile enabled on virtual server"
}
if { [PROFILE::exists persist cookie] == 1} {
log local0. "persist cookie profile enabled on virtual server"
set perCookie [PROFILE::persist cookie ?] ===> What's the right command syntax here?
}
}
- Asif_Thobhani_7
Nimbostratus
Thanks Aaron for your reply... - Asif_Thobhani_7
Nimbostratus
I think I finally figured out how to use the PROFILE::persist commands (after some trial and error)... - Colin_Walker_12Historic F5 AccountI'm glad to hear things are working better for you now. Let us know if you've got any more questions to work through.
- Deb_Allen_18Historic F5 AccountI talked to PD about getting some details to update the PROFILE:: command pages, and they have agreed to work on it with us in the near term.
- hoolio
Cirrostratus
Hi iRuleYou,
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