Forum Discussion
Tom_Thunem_9204
Nimbostratus
16 years agoredirect based upon cookie
not sure of the syntax to accomplish the following...
If ( HTTP Request is for http://someplace.com AND HTTP Request doesn’t have cookie X )
{
// Then Redirect to a hardcoded url like:
HTTP::redirect “http://someplace-else.com/some/path/somepage?param=value¶m2=value2”
}
not sure how to determine if a cookie does NOT exist.
1 Reply
- hoolio
Cirrostratus
You can logically not 'HTTP::cookie exists':
if {[string tolower [HTTP::host]] eq "someplace.com" and not ([HTTP::cookie exists "cookie_x"])}{
Aaron
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