Forum Discussion
iRule to display one time warning message
Hi,
Could anyone help me update R Eastman's code to include an "OK" button to refresh the screen and continue on the next page? I was looking for a way to display a consent banner before a user access a site. Unfortunately I have very little web coding experience and have been trying to modify the code for sometime now to display a okay button and proceed to the website. Thanks for your help, David
when HTTP_REQUEST { if { not ( [HTTP::cookie exists BANNERMESSAGE] ) } { set expires "28800" HTTP::respond 200 content "html banner content" "Set-Cookie" "BANNERMESSAGE=1; path=/; Max-Age=$expires" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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