Forum Discussion
IheartF5_45022
Nacreous
All variables have scope of TCP session. Or do you mean users browser session? You could add in a session cookie to help you with that.
Also when you say 'html text "banana"' do you mean if you see the word 'banana' in the content of an HTTP response?
A bit more info and we can give you some code to illustrate.....
IheartF5_45022
Jan 20, 2017Nacreous
Create a stream profile str_banana that looks for string 'banana', then attach an iRule as follows;-
when STREAM_MATCHED {
if {![HTTP::cookie exists 'banana']} {
Insert session cookie
HTTP::cookie insert name 'banana' value "1"
HTTP::cookie httponly 'banana' enable
log local0. "Banana seen for this session"
}
STREAM::disable
}