Forum Discussion
Jeyakumar_Nadar
Nimbostratus
Mar 13, 2006Cookie encryption/decryption using iRule
Hello,
I am trying to write a script that will encrypt/decrypt a cookie, but am having a little trouble with the syntax used in the BIG-IP. I need to check to make sure that a cookie is not decrypted before I decrypt it and am not sure of the "if" statement I can use. Here is the code I am using now:
when HTTP_REQUEST {
if{CHECK TO SEE IF ALREADY DECRYPTED, PLEASE HELP!!!} {
HTTP::cookie remove "MyCookie"
}
else {
HTTP::cookie decrypt "MyCookie" KeyValue
}
}
when HTTP_RESPONSE {
HTTP::cookie encrypt "MyCookie" KeyValue
}
I need to make sure that I do not decrypt an already decrypted cookie. Can anybody help me with the "if" statement that I need.
Thanks in Advance!
Jeya
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