Forum Discussion
Cookie Persist with Encryption Via IRule
Hello.
I have a VS configured for pool selection by context (via iRule). Also, I apply a different persist profile depending of the context.
ltm virtual VS-Pruebas_DGB_80 {
persist {
cookie_crypt {
default no
}
source_addr {
default yes
}
}
}
One of the profiles configured is a cookie insert profile with encryption.
ltm persistence cookie cookie_crypt {
app-service none
cookie-encryption required
cookie-encryption-passphrase $M$Ex$TrRJFrQUr7JnneIQ9y9DDg==
cookie-name WOW
defaults-from cookie
}
Following the Persist Doc, I use next command to apply the cookie profile (cookie_crypt):
persist cookie insert
But doing that, the system only applies a generic cookie profile (without name and without encryption):
Set-Cookie: BIGipServerWebServer=2502459914.20480.0000; path=/
I need to configure an encrypted cookie persist profile using iRule. Any idea how to do that?
KR, Dario.
- youssef1
Cumulonimbus
Hi,
Try this command in your irule:
persist cookie insert cookie_crypt
You will use your persit profil in your irule.
You can find more information in this topic: https://devcentral.f5.com/questions/encrypting-cookies-for-persistence-profile-set-by-irule
Keep me update
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