Forum Discussion
irule to pop up a window then continue to page
when RULE_INIT {
set static::refresh_time 15
set static::notification_page {
System Notification
System Notification
This is an important announcement. You may need to take some sort of action, or no
action at all. It is important that you read this entirely. If some sort of action is
needed, then do it. Otherwise do nothing. That is all.
Wait $static::refresh_time seconds to continue, or click
}
}
when HTTP_REQUEST {
if { (not [HTTP::cookie exists NotificationDone]) } {
HTTP::respond 200 content [subst $static::notification_page] Mime-Type "text/html" Set-Cookie "NotificationDone=1; path=/; domain=.[HTTP::host]"
}
}
- ccna55_14039May 10, 2016
Nimbostratus
Thanks Just what i was looking for. - DomaiMay 11, 2016
Altostratus
Joel thank you ....This is perfect. - Mike_P__194875Mar 31, 2017
Nimbostratus
I know this is an older one now but I am using this to tell users that our page has moved and that they have until June 1 to update bookmarks. I am actually trying to use it on 4 different virtual servers but for some reason if I make a change to any one of the 4 irules (they each have a specific url to redirect to) then the F5 seems to cache the last irule and uses the same one for all 4 VS's.
Any clue as to why it would do that?
- Apr 01, 2017
The static::notification_page variable is being set for all 4 irules. You can avoid this by making this variable unique for every iRule. For more info see:
 
- Mike_P__194875Apr 03, 2017
Nimbostratus
Niels, thanks again. I actually learned something new and the day is early :-)
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
