Forum Discussion
htuytela_37346
Nimbostratus
Dec 12, 2013iRule check for user-agent and set cookie
Hi,
I'm trying to get an iRule to work that checks on User-Agent, being IE6,7,8 and setting a cookie. Basically, I want those browsers to be redirected to another page, and set a cookie. When the...
Christian_30338
Dec 12, 2013Historic F5 Account
Also if you are using "string tolower" i think the comparison string should be in lowercase as well. something like this.
if {([string tolower [HTTP::header User-Agent]] contains "msie6") and (not ([HTTP::cookie] exists "test"))}
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