Forum Discussion
Jason_Cain_9729
Nimbostratus
Sep 13, 2005Checking for cookie existence
Hello all,
We are trying to use the BIGIP's to check for the existence of a cookie before allowing
a request in to a particular website. Basically this is a SSO attempt on a referral
from another site. The text we came up with is:
if (exists http_cookie("IntelligenceSession")) {
use pool servers1
}
else {
redirect to "http://www.yahoo.com"
}
The syntax is accepted and yet the rule never allows access to pool servers1.
Anyone have any ideas on what we are doing wrong?
2 Replies
- Martin_MachacekHistoric F5 AccountJason,
what happens when you access the virtual server that uses the rule? Do you get the redirect?
The rule is correct and assuming that you spelled the cookie name correctly (the match is case-sensitive) it should work. - Jason_Cain_9729
Nimbostratus
Hello,
Thanks for replying.
You can forget about this one. Turns out the domain of the site and the domain on the cookie did not match. That was fixed and this rule works fine.
Thanks.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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