Forum Discussion
Lynda_Adwell_56
Nimbostratus
May 04, 2012irule to pop up a window then continue to page
We have a request to grab all traffic coming in to a specific URI, pop a window up with a message for about 15 seconds then continue to the page. The specific page/application is going away and they ...
Joel_Moses
Nimbostratus
May 07, 2012This logic will fire only on the first access to a site during the session, then get out of the way for the remainder of the session. Something like this is what you're likely going to need to do:
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_14039
Nimbostratus
May 10, 2016Thanks Just what i was looking for.
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
