Forum Discussion
bsdpruegelknabe
Nimbostratus
May 31, 2010Naging "command is not valid" by persist
Hello,
I try to create an iRule who set a persistence due to an GET-Request-String named "id=XXXXXXXX".
Here is the rule:
---
when HTTP_REQUEST {
set sess [findstr [string tolower [HTTP::uri]] "id=" 8 ";"]
if { $sess != "" } {
persist add uie $sess
pool http
} else {
pool http member 192.168.10.10:80
}
}
---
A rule with nearly the same works. But this one keeps barfing with the following error:
line 5: [command is not valid in current event context (HTTP_REQUEST)] [persist add uie $sess
What did I wrong on this one?
(OS: 9.4.7)
TIA,
bsdpruegelknabe
- The_Bhattman
Nimbostratus
Hi - bsdpruegelknabe
Nimbostratus
Hello, - The_Bhattman
Nimbostratus
Hi,
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