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...
Philippe_CLOUP
Employee
Dec 12, 2013sorry, i was too quick. The "square bracket was ok" ;-)
it should be 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