Forum Discussion
jonathan_239725
Nimbostratus
Jan 19, 2017Trigger Once per session for specific client iRule
Good evening all,
I am looking for a way to do a "one time" trigger within an iRule.
Scenario:
User accesses site and if the html text "banana" is seen, log something, insert something...
IheartF5_45022
Nacreous
Jan 20, 2017Do you mean browser session or TCP connection? If the latter then very easy as all variables are scoped for TCP session;-
when STREAM_MATCHED {
if {![info exists fBananaSeen]} {
Set variable
set BananaSeen 1
log local0. "Banana seen for this TCP connection"
}
STREAM::disable
}
No need to delete anything when connection closes as variable automatically cleared.
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